/********** Template CSS **********/
:root {
    --primary: #FF800F;
    --primary-gradient: linear-gradient(135deg, #FF800F 0%, #E67200 100%);
    --secondary: #001064;
    --secondary-gradient: linear-gradient(135deg, #001064 0%, #000B44 100%);
    --light: #F6F7F8;
    --dark: #010A35;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --3d-shadow: 0 10px 30px -5px rgba(0, 16, 100, 0.15), 0 5px 15px -5px rgba(0, 0, 0, 0.1);
    --hd-border: 1px solid rgba(255, 255, 255, 0.2);
}

body {
    background: radial-gradient(circle at top right, #ffffff, #f9fafb);
    overflow-x: hidden;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 110px; /* Moved up to avoid overlap with WhatsApp */
    z-index: 999;
}


/*** 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;
}

.btn.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 128, 15, 0.3);
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
}

.btn.btn-primary:hover {
    background: var(--secondary-gradient);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 16, 100, 0.25);
}

.btn.btn-secondary {
    background: var(--secondary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 16, 100, 0.3);
    border-radius: 8px;
}

.btn.btn-secondary:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 128, 15, 0.25);
}

.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 ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 16, 100, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 10px 0;
    color: #696E77;
    font-weight: 400;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 45px;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        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: center;
    background: rgba(1, 10, 53, .8);
    z-index: 1;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 991.98px) {
    #header-carousel .carousel-item img {
        height: 500px;
    }
}

@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 {
    background: linear-gradient(rgba(1, 10, 53, .8), rgba(1, 10, 53, .8)), url(../img/page-header.png) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}


/*** Facts ***/
.facts {
    background: rgba(1, 10, 53, .8);
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .container.quote .quote-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.quote .quote-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.quote .quote-text {
    background: rgba(1, 10, 53, .8);
}

.container.quote .quote-form {
    background: rgba(255, 255, 255, .8);
}

.container.quote .quote-text .h-100,
.container.quote .quote-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/*** Service ***/
.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}


/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(1, 10, 53, .8);
    transition: .5s;
}

.team-item .team-img::after {
    left: auto;
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}



/*** Testimonial ***/
.animated.pulse {
    animation-duration: 1.5s;
}

.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    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;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}


/*** Footer ***/
.footer {
    color: #7F8499;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #7F8499;
    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: #7F8499;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}


.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--primary);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}
/* Floating Buttons Design */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-5px);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.btn-call {
    left: 30px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
 
 /*** 3D HD Global Effects ***/
.service-item, .google-review-item, .accordion-item, .card, .facts {
    border-radius: 40px !important;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--3d-shadow);
    border: 1px solid rgba(0, 16, 100, 0.03) !important;
    background: #fff;
    transform: translateZ(0); /* Fix for overflow:hidden on some browsers */
}
.service-item img, .service-item .position-relative.overflow-hidden {
    border-top-left-radius: 40px !important;
    border-top-right-radius: 40px !important;
}
.service-item:hover, .google-review-item:hover, .accordion-item:hover {
    transform: translateY(-10px) scale(1.02) rotateX(2deg);
    box-shadow: 0 25px 50px -12px rgba(0, 16, 100, 0.25);
    z-index: 10;
}
.service-item img { 
    transition: 0.8s; 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    display: block; 
}
.service-item:hover img { transform: scale(1.15) rotate(1deg); }
.facts { background: var(--secondary-gradient) !important; position: relative; overflow: hidden; color: #fff; }
.facts::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,128,15,0.15) 0%, transparent 70%);
    animation: rotate-bg 20s linear infinite;
    pointer-events: none;
}
@keyframes rotate-bg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.display-6, .display-4 { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); font-weight: 800 !important; }
.container-xxl { perspective: 1000px; }
.btn-lg-square { box-shadow: 0 4px 10px rgba(255, 128, 15, 0.3); transition: 0.3s; }
.btn-lg-square:hover { transform: rotate(15deg) scale(1.1); }
.position-relative.overflow-hidden img { border-radius: 20px; box-shadow: var(--3d-shadow); }
.carousel-caption { background: rgba(0, 16, 100, 0.3); border-radius: 20px; padding: 40px !important; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 15px 35px rgba(0,0,0,0.2); overflow: hidden; }
.carousel-caption h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -1px; }

/* Hero section mobile responsive fix */
@media (max-width: 575.98px) {
    .carousel-caption {
        padding: 15px 10px !important;
        border-radius: 12px;
        margin: 0 5px;
    }
    .carousel-caption h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    .carousel-caption p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        padding: 0 !important;
    }
    .carousel-caption .btn {
        font-size: 0.75rem !important;
        padding: 8px 16px !important;
        white-space: nowrap;
    }
    .carousel-caption .d-flex {
        gap: 8px;
    }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .carousel-caption {
        padding: 20px 15px !important;
        border-radius: 15px;
    }
    .carousel-caption h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.75rem !important;
    }
    .carousel-caption p {
        font-size: 0.85rem !important;
    }
    .carousel-caption .btn {
        font-size: 0.85rem !important;
        padding: 10px 20px !important;
    }
}
@media (max-width: 991.98px) {
    .mobile-header-bar {
        position: relative;
        height: 70px;
    }
    .navbar-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1001;
    }
    .navbar-toggler {
        z-index: 1002;
    }
    .mobile-call-btn {
        z-index: 1002;
        background-color: #FF800F !important;
        color: #ffffff !important;
        border: none;
    }
    .mobile-call-btn:hover, .mobile-call-btn:active, .mobile-call-btn:focus {
        background-color: #001064 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0, 16, 100, 0.3);
    }
}
@media (max-width: 767.98px) {
    .page-header h1.display-4 {
        font-size: 2.5rem !important;
    }
    .page-header .btn {
        width: 80%;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 14px !important;
    }
}

/* Gallery Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--3d-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 16, 100, 0.05);
    background: #fff;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 16, 100, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .gallery-item {
        height: 250px;
    }
}

/* Language Switcher Styling */
.lang-switcher-wrap {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 8px 15px;
    box-shadow: var(--3d-shadow);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
    color: var(--secondary);
    backdrop-filter: blur(10px);
    font-size: 14px;
    min-width: 100px;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.lang-btn i {
    font-size: 16px;
    margin-right: 8px;
}

/* RTL Specific Styles */
[dir="rtl"] .lang-switcher-wrap {
    right: auto;
    left: 20px;
}

[dir="rtl"] .me-2, [dir="rtl"] .me-3, [dir="rtl"] .me-4 {
    margin-right: 0 !important;
}
[dir="rtl"] .ms-2, [dir="rtl"] .ms-3, [dir="rtl"] .ms-4 {
    margin-left: 0 !important;
}

[dir="rtl"] .me-2 { margin-left: .5rem !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; }
[dir="rtl"] .me-4 { margin-left: 1.5rem !important; }

[dir="rtl"] .ms-2 { margin-right: .5rem !important; }
[dir="rtl"] .ms-3 { margin-right: 1rem !important; }
[dir="rtl"] .ms-4 { margin-right: 1.5rem !important; }

[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }

[dir="rtl"] .navbar-nav.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .float-end { float: left !important; }
[dir="rtl"] .float-start { float: right !important; }

[dir="rtl"] .carousel-control-prev {
    right: auto;
    left: 0;
}
[dir="rtl"] .carousel-control-next {
    left: auto;
    right: 0;
}

@media (max-width: 991.98px) {
    .lang-switcher-wrap {
        top: 110px;
        right: 10px;
        flex-direction: row;
    }
    [dir="rtl"] .lang-switcher-wrap {
        right: auto;
        left: 10px;
    }
    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 80px;
    }
}


/* Circle Type Enhancements */
@media (min-width: 992px) { .navbar { border-radius: 50px; margin: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); } } @media (max-width: 991.98px) { .navbar { border-radius: 30px; margin: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); } } .carousel-inner { border-radius: 40px; } .carousel { padding: 0 15px; }

/* Mobile Menu Pill Structure */
@media (max-width: 991.98px) { .navbar-collapse { background: #ffffff; border-radius: 20px; padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-top: 10px; } .navbar .navbar-nav .nav-link, .navbar .dropdown-item { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 50px; text-align: center; margin-bottom: 10px; padding: 12px 20px; color: var(--primary); font-weight: 700; transition: 0.3s; margin-left: 0; margin-right: 0; } .navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active, .navbar .dropdown-item:hover, .navbar .dropdown-item.active { background: var(--primary); color: #ffffff !important; border-color: var(--primary); } .navbar .nav-item .dropdown-menu { border: none; background: transparent; padding: 0; margin-top: 0; } }

/* Desktop Dropdown Pill Structure */
@media (min-width: 992px) { .navbar .dropdown-menu { border-radius: 20px; padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: none; } .navbar .dropdown-item { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 50px; text-align: center; margin-bottom: 10px; padding: 10px 20px; color: var(--primary); font-weight: 700; transition: 0.3s; } .navbar .dropdown-item:last-child { margin-bottom: 0; } .navbar .dropdown-item:hover, .navbar .dropdown-item.active { background: var(--primary); color: #ffffff !important; border-color: var(--primary); } }

/* Desktop Main Nav Links Pill Structure */
@media (min-width: 992px) { .navbar .navbar-nav .nav-link { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 50px; padding: 8px 20px !important; margin-left: 15px; color: var(--primary); font-weight: 700; transition: 0.3s; display: inline-block; } .navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active { background: var(--primary); color: #ffffff !important; border-color: var(--primary); } }

/* Clean FAQ Styling */
@media all { .accordion-item { border: 1px solid rgba(0,0,0,0.05) !important; border-radius: 15px !important; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important; background-color: #fff !important; overflow: hidden; transform: none !important; } .accordion-item:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important; } .accordion-button { font-weight: 600; padding: 18px 20px; background-color: #fff !important; color: #333 !important; box-shadow: none !important; border: none !important; border-radius: 15px !important; } .accordion-button:not(.collapsed) { color: var(--primary) !important; background-color: #fff !important; box-shadow: none !important; border-bottom: 1px dashed rgba(0,0,0,0.1) !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; } .accordion-body { padding: 20px; color: #555; background-color: #fff; line-height: 1.6; font-size: 15px; } }
