/* Rectangle style for language links */
.lang-rect {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 4px;
    border: 1px solid #1E7CFF;
    background: #fff;
    color: #1E7CFF;
    font-weight: 600;
    margin: 0 2px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.lang-rect:hover {
    background: #1E7CFF;
    color: #fff;
}
/********** Template CSS **********/

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


/*** 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;
    border-radius: 50px;
}

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

.btn-primary {
    color: var(--bs-white);
}

.btn-outline-primary,
.btn-outline-light {
    background: transparent !important;
    color: #C8102E  !important;
}

.btn-outline-primary:hover,
.btn-outline-light:hover {
    background: #9E0B22 !important;
    color: #fff !important;
}

/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color:#fff;
}

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

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }

    /* Black background for mobile menu when expanded */
    .navbar .navbar-collapse.show {
        background-color: #000;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
        border-radius: 0;
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .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 .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

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

/* Video Background Hero Styles */
.video-background-container {
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0);
    z-index: 2;
}

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

    /* Hero video mobile adjustments */
    .video-background-container {
        height: 60vh !important;
        min-height: 400px;
        overflow: hidden;
        background: #000;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
    }
    
    .carousel-caption {
        padding-top: 40px !important;
    }
    
    .carousel-caption .title {
        margin-bottom: 1rem;
    }
    
    .carousel-caption .title .display-1 {
        font-size: 1.75rem !important;
    }
}

/* Tablet responsive styles */
@media (max-width: 991.98px) and (min-width: 769px) {
    .video-background-container {
        height: 80vh;
        min-height: 450px;
    }
    
    .carousel-caption {
        padding: 2rem;
    }
    
    .carousel-caption .title {
        margin-bottom: 1.5rem;
    }
    
    .carousel-caption .title .display-1 {
        font-size: 2rem !important;
    }
}

/* Small phone adjustments */
@media (max-width: 480px) {
    .video-background-container {
        height: 55vh;
        min-height: 350px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption .title .display-1 {
        font-size: 1.25rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.875rem !important;
    }
}

/* Ensure proper layout on landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .video-background-container {
        height: 100vh;
        min-height: auto;
    }
}

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

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


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, 0);
    border-radius: 0.5rem;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 0.5rem 0 0 0.5rem;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 0.5rem 0.5rem 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 0.5rem 0.5rem 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


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

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

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

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}

/* --- HERO FULLSCREEN STYLES --- */
.hero-full-bg {
    width: 100vw;
    max-width: 1920px;
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, #000000 60%, rgba(11,15,26,0.0) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}
.hero-title {
    font-size: 64px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-tagline {
    font-size: 20px;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 400;
}
.neon-cyan {
    color: #00fff7;
    text-shadow: 0 0 8px #00fff7, 0 0 16px #00fff7;
    font-weight: 700;
}
.hero-cta .btn-primary {
    background: #0d6efd;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(13,110,253,0.15);
    transition: background 0.2s;
}
.hero-cta .btn-primary:hover {
    background: #0056b3;
}
.hero-cta .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    transition: background 0.2s, color 0.2s;
}
.hero-cta .btn-outline-light:hover {
    background: #fff;
    color: #0B0F1A;
}
@media (max-width: 991.98px) {
    .hero-title { font-size: 40px; }
    .hero-content { min-height: 70vh; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 28px; }
    .hero-tagline { font-size: 16px; }
    .hero-content { min-height: 60vh; }
}