/********** Template CSS **********/

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

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

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 3rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

.pt-6 {
    padding-top: 3rem;
}

.pb-6 {
    padding-bottom: 3rem;
}

/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

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

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

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

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

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

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

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

/*** Navbar ***/
.sticky-top {
    top: 0;
    transition: 1.5s;
}

.navbar {
    position: relative;

}

.navbar .navbar-nav {
    display: flex;
    justify-content: space-evenly; /* Distribute links evenly */
    width: 100%; /* Ensure nav takes full width */
}

.navbar .navbar-nav .nav-link {
    padding: 0px 0px; /* Adjusted padding for better spacing */
    color: var(--bs-dark);
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
    text-align: center; /* Center text within each link */
    flex: 1; /* Make links take equal space */
}

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

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

.navbar-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        display: flex;
        justify-content: center; /* Center the navbar content */
        align-items: center;
    }

    .navbar-brand {
        flex: 0 0 auto;
    }

    .navbar-logo-center {
        flex: 0 0 auto;
    }

    .navbar-collapse {
        flex: 0 0 auto;
        width: 100%; /* Ensure collapse takes full width */
    }

    .navbar .navbar-nav {
        justify-content: space-evenly; /* Evenly space links */
    }
    
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        justify-content: flex-start; /* Stack links vertically on mobile */
        flex-direction: column; /* Stack links */
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0; /* Adjust padding for mobile */
        text-align: left; /* Align left for mobile */
        flex: none; /* Remove flex growth */
    }

    .navbar .navbar-brand h1 {
        font-size: 20px;
    }

    .navbar .navbar-brand img {
        width: 100px;
        height: auto;
    }

    .navbar-logo-center {
        display: none; /* Hide logo center on mobile */
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Hero Video ***/
.hero-video {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    top: 0;
    z-index: 0; /* Ensure hero is above navbar */
}

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #F6F7E9;
    padding: 0 15px;
    width: 90%;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    opacity: 0;
    transform: scale(0.5);
    animation: zoomIn 1s ease-out 2s forwards;
    font-family: 'Inter', sans-serif;
    font-weight: 500; /* Medium weight */
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 1rem 0 0;
    opacity: 0;
    transform: scale(0.5);
    animation: zoomIn 1s ease-out 3s forwards;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }
}

/*** Typography ***/
h1, h5, h4 {
    font-family: 'cinzel', sans-serif;
    font-weight: 300; /* Medium weight */
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 300; /* Light weight */
}

/*** Header ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    background: rgba(0, 0, 0, .7);
    padding: 2rem;
    padding-left: 5rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 60px;
    flex-direction: column;
    margin: 0;
    margin-left: 1rem;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 50px;
    height: 50px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

    .carousel .carousel-indicators [data-bs-target] {
        width: 40px;
        height: 40px;
    }

    .carousel .carousel-caption {
        padding-left: 3rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 400px;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 30px;
        height: 30px;
    }

    .carousel .carousel-caption {
        padding: 1rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 6rem;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/*** About ***/
.about-img {
    position: relative;
    padding-left: 30px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 200px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-primary);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -15px;
    }
    50% { 
        top: -30px;
    }
    100% { 
        top: -15px;
    } 
}

@media (max-width: 768px) {
    .about-img {
        padding-left: 0;
        margin-bottom: 2rem;
    }

    .about-img::before {
        width: 100px;
        height: 150px;
    }
}

/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 1) 50%), url(../img/carousel-1.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 2rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}

@media (max-width: 768px) {
    .feature-item {
        text-align: center;
    }

    .feature-item:hover .feature-icon {
        margin-left: 0;
    }
}

/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 30px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 30px;
    background: var(--bs-white);
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--bs-primary);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -30px;
    padding-left: 30px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 30px !important;
}

@media (max-width: 768px) {
    .service .service-item img {
        padding-left: 0;
    }

    .service .service-item:hover a {
        padding-left: 15px !important;
    }
}

/*** Appointment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-2.jpg) left center no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .appoinment .row {
        flex-direction: column;
    }

    .appoinment .col-lg-6 {
        padding: 0 15px;
    }
}

/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .team .team-item {
        text-align: center;
    }
}

/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 80px;
    height: 80px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 8px 8px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 80px;
    height: 80px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 10px;
    color: var(--bs-primary);
    font-size: 35px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}

@media (max-width: 768px) {
    .testimonial-img {
        min-height: 200px;
    }

    .testimonial-img div {
        width: 60px;
        height: 60px;
    }

    .testimonial-carousel .owl-item img {
        width: 60px;
        height: 60px;
    }
}

/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    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;
    color: var(--bs-primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #222222;
}

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

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

@media (max-width: 768px) {
    .footer .row {
        flex-direction: column;
        text-align: center;
    }

    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }

    .footer .btn.btn-link {
        text-align: center;
    }
}