
:root {
    --primary: #346262;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

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

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Facts ***/
.facts {
    background: linear-gradient(#0bc0bb,#0bc0bb), url(../img/bg.png);
}


/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(#0bc0bb, #0bc0bb), url(../img/bg.png);
    z-index: -1;
}


/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}

/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    padding: 4rem 0;
    overflow: hidden; /* Ensure child elements don't overflow */
}

.team-item img {
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.team-item:hover img {
    transform: scale(1.1); /* Scale the image on hover */
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: background 0.5s, border-color 0.5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4,
.team-item .team-text h5 {
    transition: color 0.5s;
}

.team-item:hover .team-text h4,
.team-item:hover .team-text h5 {
    color: #FFFFFF;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
    transition: background 0.5s, color 0.5s;
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

/* New CSS for Font Awesome Link */
.team-item .fa-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s, color 0.3s;
    text-decoration: none;
    z-index: 3;
}

.team-item:hover .fa-link {
    opacity: 1;
}

.team-item .fa-link:hover {
    color: #fff;
    background-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #198754;
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}



/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 120px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  color: var(--default-color);
  font-size: 28px;
  font-weight: 700;
}

.call-to-action p {
  color: var(--default-color);
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  background: var(--accent-color);
  color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}
/* Container for rolling balls */
.rolling-balls-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* Common style for all balls */
.rolling-balls-section .ball {
    width: 270px;
    height: 270px;
    background-color: #B8E7E6;
    border-radius: 50%;
    border: 5px solid #346262;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #346262;
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    text-align: center;
    opacity: 0; /* Hidden initially */
    transition: background-color 1s ease, color 1s ease, font-size 1s ease; /* Smoother transitions */
    padding: 10px; /* Add padding to avoid overflow */
    box-sizing: border-box; /* Ensure padding is included in the ball's size */
}

/* Individual ball starting positions */
.rolling-balls-section .ball1 {
    left: -200px;
}

.rolling-balls-section .ball2 {
    left: -200px;
}

.rolling-balls-section .ball3 {
    left: -200px;
}

.rolling-balls-section .ball4 {
    left: -200px;
}


/* Unique Animation for rolling balls */
@keyframes rollInBalls {
    0% {
        left: -200px;
        transform: translateY(-50%) rotate(0deg);
    }
    80% {
        transform: translateY(-50%) rotate(360deg);
    }
    100% {
        transform: translateY(-50%) rotate(0deg);
    }
}

/* Final positions for each ball */
.rolling-balls-section .ball1 {
    left: 0%;
}

.rolling-balls-section .ball2 {
    left: 25%;
}

.rolling-balls-section .ball3 {
    left: 50%;
}

.rolling-balls-section .ball4 {
    left: 75%;
}

/* Trigger the unique animation */
.rolling-balls-section .show {
    animation: rollInBalls 3s ease-out forwards;
    opacity: 1; /* Make balls visible when they scroll into view */
}


/* Mobile responsive design - Balls appear vertically on small screens */
@media (max-width: 768px) {
    .rolling-balls-section {
        flex-direction: column; /* Stack the balls vertically */
        height: auto; /* Let height adjust based on content */
    }

    .rolling-balls-section .ball {
        position: static; /* Remove absolute positioning for better stacking */
        width: 200px; /* Reduce size of balls for mobile */
        height: 200px;
        margin: 20px 0; /* Add space between balls */
    }

    /* Ball animation for mobile */
    .rolling-balls-section .show {
        animation: rollInBallsVertical 2s ease-out forwards;
        opacity: 1;
    }

    /* Adjust the rolling in animation for vertical stacking */
    @keyframes rollInBallsVertical {
        0% {
            transform: translateY(200px) rotate(0deg); /* Start below the screen */
        }
        80% {
            transform: translateY(0) rotate(360deg); /* Full rotation while moving */
        }
        100% {
            transform: translateY(0) rotate(0deg); /* Stop rotation */
        }
    }
}




/* Hover effect - background and text color change */
.rolling-balls-section .ball:hover {
    background-color: #346262; /* Changes background to the rim color */
    color: white; /* Changes text color to white */
}


/* Change text on hover using ::before */
.rolling-balls-section .ball:hover .text::before {
    content: attr(data-hover-text); /* Get text from data-hover-text attribute */
    font-family: "Times New Roman", Times, serif;
    font-size: 32px; /* Larger font size on hover */
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center; /* Center the text horizontally */
    align-items: center; /* Center the text vertically */
    width: 100%; /* Ensure it takes the full width of the ball */
    height: 100%; /* Ensure it takes the full height of the ball */
    position: absolute;
    top: 0;
    left: 0;
    text-align: center; /* Center text in multiple lines */
    transition: font-size 1s ease, color 1s ease; /* Smooth text size and color change */
}

/* Hide the original text on hover */
.rolling-balls-section .ball:hover .text {
    visibility: hidden; /* Hide original text */
}

/* Make the new hover text visible */
.rolling-balls-section .ball:hover .text::before {
    visibility: visible;
    display: block;
    position: relative;
    color: white; /* Set hover text color */
}


@media (max-width: 768px) {
    .rolling-balls-section .ball {
        width: 200px; /* Smaller ball size */
        height: 200px;
        font-size: 20px; /* Smaller default text size */
    }

    .rolling-balls-section .ball:hover .text::before {
        font-size: 20px; /* Adjust hover text size for smaller screens */
        padding: 0 8px; /* Reduce padding to fit text inside the ball */
    }
}