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

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

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

/*** Fonts ***/
.font-work-sans {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-playfair-display {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*** Button ***/
.btn {
    position: relative;
    transition: .5s;
}

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

.btn-dark,
.btn-primary {
    margin: 10px;
}

.btn-primary::before,
.btn-primary::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-primary::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
}

.btn-primary::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

.btn-dark::before,
.btn-dark::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-dark::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-dark);
    border-right: 2px solid var(--bs-dark);
}

.btn-dark::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-dark);
    border-bottom: 2px solid var(--bs-dark);
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 0;
    outline: none;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-dark);
}

.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 .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

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

.navbar .btn-primary {
    border-width: 2px;
    background: var(--bs-light);
}

.navbar .btn-primary:hover {
    background: var(--bs-primary);
}


/*** Hero Header ***/
.hero-header {
    background: url(../img/hero-bg.jpg) top left no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header .container {
        max-width: 100% !important;
    }

    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.header-carousel .owl-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next{
    position: relative;
    margin-left: 2px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

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

.page-header {
    background: url(../img/page-header.jpg) center center no-repeat;
    background-size: contain;
}

.hero-slider .hero-slide {
    height: 800px;
    display: flex;
    align-items: center;
    background: var(--bs-light);
}

.hero-slider .hero-slide .header-carousel {
    height: 100%;
}

.hero-slider .hero-slide .header-carousel img {
    height: 100%;
    object-fit: cover;
}

.hero-slider img {
    height: 800px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-slider img:hover {
    transform: scale(1.05);
}

.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.hero-slider .owl-nav .owl-prev,
.hero-slider .owl-nav .owl-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.hero-slider .owl-nav .owl-prev:hover,
.hero-slider .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: white;
}

/*** Hero Separator ***/
.hero-separator {
    position: relative;
    height: 100px;
    background: var(--bs-light);
    overflow: hidden;
}

.hero-separator::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--bs-primary);
    clip-path: ellipse(50% 100% at 50% 0%);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 56.25vw;
    }

    .hero-slider img {
        height: 56.25vw;
    }

    .hero-slider .hero-slide {
        height: 56.25vw;
    }

    .hero-slider .hero-slide .col-lg-6:nth-child(2) {
        display: none;
    }

    .hero-slider .hero-slide .col-lg-6 {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-slider .hero-slide .hero-header-text {
        padding: 0.5rem;
        text-align: center;
    }

    .hero-slider .hero-slide .hero-header-text h1 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .hero-slider .hero-slide .hero-header-text h1.display-1 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .hero-slider .hero-slide .hero-header-text .row.g-4 {
        flex-direction: column;
        gap: 0.2rem;
    }

    .hero-slider .hero-slide .hero-header-text .row.g-4 .col-md-6 {
        width: 100%;
        text-align: center;
    }

    .hero-slider .hero-slide .hero-header-text .row.g-4 .col-md-6 .fs-5 {
        font-size: 0.8rem;
    }

    .hero-slider .hero-slide .hero-header-text .row.g-4 .col-md-6 h5 {
        font-size: 0.8rem;
    }

    .hero-slider .hero-slide .col-lg-6 img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }
}


/*** Service ***/
@media (max-width: 768px) {
    .service .service-item {
        border: none !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    }
}

@media (min-width: 992px) {
    .service .service-item.border-lg-end {
        border-right: 1px solid #dee2e6;
    }

    .service .service-item.border-lg-end-0 {
        border-right: none !important;
    }

    .service .service-item.border-lg-bottom-0 {
        border-bottom: none !important;
    }
}

.service .service-item .btn-primary {
    border-width: 2px;
    background: var(--bs-white);
}

.service .service-item .btn-primary:hover {
    background: var(--bs-primary);
}

.service .service-item img {
    width: 70px;
    margin-bottom: 20px;
}


/*** Team ***/
.team {
    position: relative;
}

.team::before {
    position: absolute;
    content: "";
    width: 200%;
    height: 200px;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    margin-top: 1rem;
    background: var(--bs-primary);
}

.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    text-align: center;
    background: rgba(255, 255, 255, .5);
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-overlay {
    background: rgba(255, 255, 255, .9);
}

.team-overlay p {
    letter-spacing: 1px;
}

.team-overlay .btn-dark {
    border-width: 2px;
    color: var(--bs-dark);
    background: transparent;
}

.team-overlay .btn-dark:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item {
    position: relative;
}

.testimonial-carousel .owl-item::before {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
}

.testimonial-carousel .owl-item img {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.testimonial-carousel .owl-item,
.testimonial-carousel .owl-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item span {
    letter-spacing: 2px;
}

.testimonial-carousel .owl-item.center .bg-light {
    background: var(--bs-primary) !important;
}

.testimonial-carousel .owl-item.center .bg-light * {
    color: var(--bs-dark) !important;
}

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

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

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


/*** Footer ***/
@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--bs-secondary);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

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

/*** Portfolio ***/
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.portfolio-photo {
    position: relative;
    width: 100%;
    padding-top: 130%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-photo:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.video-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 0 25px;
    -webkit-overflow-scrolling: touch;
}

.reel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
}

.video-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reel-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--bs-primary), #ff7eb3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reel-nav span {
    font-size: 1.8rem;
    line-height: 1;
    margin-top: -4px;
}

.reel-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.reel-nav:active {
    transform: scale(0.95);
}

.video-scroll-container {
    flex: 1 1 auto;
}

.reel-nav-left,
.reel-nav-right {
    position: relative;
}

.reel-nav-left {
    margin-left: -10px;
}

.reel-nav-right {
    margin-right: -10px;
}

.video-scroll-wrapper::before,
.video-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 1;
}

.video-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.video-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.video-scroll {
    display: flex;
    gap: 18px;
    padding: 10px 5px;
    width: max-content;
    scroll-snap-type: x mandatory;
}


.video-item {
    flex: 0 0 auto;
    width: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    position: relative;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.video-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}


.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 180%;
    background: #000;
}

.reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.reel-meta {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.reel-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.reel-handle {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.85;
}

.reel-audio-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.reel-audio-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.65) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-wrapper::after {
    opacity: 1;
}

.video-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.video-scroll-container::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 10px;
}

.video-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.video-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 576px) {
    .reel-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-item {
        width: 160px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .video-scroll-wrapper {
        gap: 0;
    }

    .reel-nav {
        display: none;
    }

    .video-scroll-wrapper::before,
    .video-scroll-wrapper::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .video-item {
        width: 180px;
    }

    .reel-nav {
        width: 40px;
        height: 40px;
    }
}

.reel-modal .modal-dialog {
    max-width: 480px;
    margin: 1.5rem auto;
}

.reel-modal .modal-content {
    background: #000;
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.reel-modal video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
}

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