/********** Template CSS **********/
:root {
    --primary: #fd7e14; /* orange accent */
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #4169E1; /* RoyalBlue main */
    /* Code color palette */
    --code-blue: #60a5fa; /* modern, brighter blue for improved contrast on dark bg */
    --code-green: #22863a; /* slightly darker green for strings/nums */
    --code-orange: #c04200; /* richer orange for functions/operators */
    --code-bg: #0f1724; /* dark background for pre blocks */
}

/* Inline code and pre block modern styling */
code,
pre code,
.code,
kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", monospace;
    color: var(--code-orange) !important;
    background: rgba(255,255,255,0.02);
    padding: 0.18em 0.36em;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
    font-size: 0.92em;
    white-space: pre-wrap;
}

/* Pre/code block styling */
pre {
    background: var(--code-bg);
    color: #e6eef8;
    padding: 20px 22px;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 8px 30px rgba(2,6,23,0.65);
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
}

/* Language label when using data-lang attribute on pre */
pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 11px;
    color: #cbd5e1;
    background: rgba(255,255,255,0.03);
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Slight left accent bar for code blocks */
pre::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    background: linear-gradient(180deg, var(--primary), rgba(255,255,255,0.02));
}

/* Selection inside code */
pre ::selection,
code ::selection,
.code ::selection {
    background: rgba(255,255,255,0.06);
    color: inherit;
}

/* Common token colors (works with Prism/Highlight.js token classes) */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #94a3b8; /* muted */
    font-style: italic;
}

/* Keywords and operators use the blue tone for clarity */
.token.keyword,
.token.operator {
    color: var(--code-blue);
    font-weight: 700;
}

/* Properties, tags and constants stay green */
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: var(--code-green);
}

/* Functions, class names and selectors get the orange accent */
.token.function,
.token.class-name,
.token.selector {
    color: var(--code-orange);
}

/* Strings and numbers use the green tone for good contrast */
.token.string,
.token.inserted,
.token.attr-value,
.token.number {
    color: var(--code-green);
}

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

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


.topbar-right {
    position: relative;
    background: var(--dark);
    color: var(--light);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--dark);
}

/* Topbar visual polish: subtle gradient, divider and improved contrast */
.container-fluid.bg-dark {
    background: linear-gradient(90deg, rgba(6,78,210,0.06), rgba(208,83,0,0.03)), linear-gradient(90deg, var(--dark), rgba(0,0,0,0.6));
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.topbar-right {
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
    color: var(--light);
    transition: background .18s ease, color .18s ease;
}

.container-fluid.bg-dark .follow-label {
    color: var(--primary);
}

/* Follow / social links styling in the topbar */
.follow-label {
    color: var(--primary);
    font-weight: 600;
    margin-right: 8px;
}

.social-link {
    color: var(--primary) !important;
    border: 1px solid rgba(255,255,255,0.04);
    background: transparent;
    padding: 6px 8px;
    margin-right: 6px;
    border-radius: 6px;
    transition: all .18s ease-in-out;
}

.social-link i {
    width: 1em;
    height: 1em;
}

.social-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff !important;
    transform: translateY(-1px);
}


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

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--dark);
    color: var(--light);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    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-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

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


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(65,105,225, 1) 0%, rgba(65,105,225, 0) 100%);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

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

@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(to right, rgba(65,105,225, 1) 0%, rgba(65,105,225, 0) 100%), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

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

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}


/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    min-height: 320px;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item .service-img {
    position: absolute;
    padding: 8px;
    width: 180px;
    height: 180px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--dark), #02245B);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(65,105,225, .3);
    z-index: 3;
    transition: all 0.3s ease;
}

/* Ensure inner image fills the container */
.service-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 80px 30px 30px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s ease;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    min-height: 320px;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item .service-img {
    position: absolute;
    padding: 6px;
    width: 180px;
    height: 180px;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--dark), #02245B);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(65,105,225, .28);
    z-index: 40;
    transition: all 0.25s ease;
    overflow: hidden;
}

.service-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 80px 30px 30px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s ease;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 80px 30px 30px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(65,105,225, .95), rgba(65,105,225, .9));
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn,
.service-item .btn-service {
    position: absolute;
    width: auto;
    min-width: 140px;
    height: 44px;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--dark), #02245B) !important;
    border: none;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(65,105,225, .28);
    z-index: 999 !important;
    transition: all 0.25s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, #02245B, var(--dark));
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 35px rgba(65,105,225, .4);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .15);
}

.service-item:hover .service-img {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 20px 40px rgba(65,105,225, .4);
}


/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--dark);
}

.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    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;
}


/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

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


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

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

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** About Page Enhancements ***/
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.about-contact-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.about-contact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0.5rem 1rem rgba(0, 86, 27, 0.1);
}

.region-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary);
}

/*** Footer ***/
.footer {
    color: var(--light);
    background: var(--dark) !important;
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.92);
    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: #fff;
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: rgba(255,255,255,0.75);
    background: rgba(0,0,0,0.05);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Gallery images in footer */
.footer .img-fluid {
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 6px;
}

/* Ensure footer links and icons inherit correct colors */
.footer i,
.footer a {
    color: rgba(255,255,255,0.92) !important;
}
