/* ==========================================================================
   1. KRASHV CORPORATE DESIGN ARCHITECTURE SYSTEM VARIABLES
   ========================================================================== */
:root {
    --bs-primary: #ff7a00;    /* Vibrant Branding Orange */
    --bs-secondary: #0a2240;  /* Deep Professional Navy Blue */
    --bs-dark: #051324;       /* Extra Dark Navy for Footer backgrounds */
    --bs-light: #f8f9fa;      /* Clean Light Workspace Grey */
}

/* ==========================================================================
   2. CUSTOM SPACING, TYPOGRAPHY & UTILITY CORES
   ========================================================================== */
.custom-letter-spacing {
    letter-spacing: 1px;
}
.custom-letter-spacing-wide {
    letter-spacing: 2px;
}
.max-width-600 {
    max-width: 600px;
}
.bg-krashv-navy { background-color: #0a2240 !important; }
.bg-krashv-orange { background-color: #ff7a00 !important; }
.text-krashv-navy { color: #0a2240 !important; }
.text-krashv-orange { color: #ff7a00 !important; }

/* Custom Adaptive Square Icon Elements Frameworks */
.btn-square {
    width: 32px;
    height: 32px;
}
.btn-sm-square {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.btn-md-square {
    width: 55px;
    height: 55px;
}
.btn-lg-square {
    width: 56px;
    height: 56px;
}
.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* ==========================================================================
   3D CARD FLIP ARCHITECTURE MODULE
   ========================================================================== */
/* The main box that creates the 3D space perspective */
.flip-card-wrapper {
    background-color: transparent;
    width: 100%;
    height: 400px; /* Adjust height to match your design requirements */
    perspective: 1000px; /* Critical: Creates the 3D depth perception */
}

/* The structural container that actually handles the 180-degree rotation */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d; /* Critical: Tells children to live in 3D space */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
}

/* Trigger rotation on Hover */
.flip-card-wrapper:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Global setup for both Front and Back Panels */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari Support */
    backface-visibility: hidden;        /* Critical: Hides the element when it's flipped backward */
    border-radius: 10px;
    overflow: hidden;
}

/* Front Panel Design Layer */
.flip-card-front {
    background-color: #ffffff;
    color: #333333;
    z-index: 2; /* Keeps front on top initially */
}

/* Back Panel Design Layer */
.flip-card-back {
    background-color: var(--bs-secondary); /* Uses your Corporate Navy */
    color: #ffffff;
    transform: rotateY(180deg); /* Critical: Pre-flips the back panel so it's upright when the container spins */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ==========================================================================
   4. SYSTEM CORE NAVIGATION ARCHITECTURE (2026 ENTERPRISE EDITION)
   ========================================================================== */
.sticky-top {
    transition: all 0.35s ease;
    background: #ffffff;
    z-index: 1030;
}

.topbar {
    padding: 10px 0;
    background: var(--bs-secondary) !important;
}

/* Layout Framework */
div.container-fluid nav.navbar {
    padding: 0;
}

.nav-wrapper .container {
    max-width: 95%;
}

.nav-wrapper {
    padding-left: 20px !important;
    padding-right: 40px !important;
    transition: 0.3s ease-in-out;
}

/* Logo Framework */
div.container-fluid nav.navbar a.navbar-brand {
    background-color: transparent !important;
    padding: 10px 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 50px !important;
    min-width: 220px !important;
}

/* Optimized Logo Size */
div.container-fluid nav.navbar a.navbar-brand img {
    height: 85px !important;
    max-height: 85px !important;
    width: auto !important;
    object-fit: contain !important;
    transition: all .3s ease;
}

div.container-fluid nav.navbar .navbar-collapse {
    padding-right: 20px !important;
}

/* MAIN NAVIGATION LINKS */
.navbar .navbar-nav {
    gap: 4px;
}

.navbar .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
    position: relative;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    transition: all .3s ease;
    white-space: nowrap;
}

/* Hover State */
.navbar .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Active Page State */
.navbar .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 700 !important;
}

/* Animated Underline */
.navbar .navbar-nav .nav-link::after,
.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 15%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 50px;
    transition: width .3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar .navbar-nav .nav-link.active::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 70%;
}

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

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: translateY(10px);
        border: 0;
        transition: all .25s ease;
        opacity: 0;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,.08);
    }

    .navbar .navbar-collapse .border-top {
        border-top: none !important;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        background: #ffffff;
    }
}

/* MOBILE NAVIGATION */
@media (max-width: 1200px) {
    div.container-fluid:has(nav.navbar) .container {
        max-width: 100% !important;
        padding-right: 15px !important;
    }

    div.container-fluid nav.navbar a.navbar-brand img {
        height: 50px !important;
        max-height: 50px !important;
    }

    .navbar-collapse {
        margin-top: 10px;
        border-radius: 12px;
        padding: 10px;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,.06);
    }

    .navbar-nav .nav-link {
        padding: 14px 18px !important;
        border-radius: 8px;
        margin-bottom: 4px;
    }

    .navbar-nav .nav-link.active {
        background: rgba(255,122,0,.08);
        color: var(--bs-primary) !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ==========================================================================
   5. PAGES STRUCTURAL HERO BACKGROUNDS & CAROUSEL CORES
   ========================================================================= */
.hero-section {
    background: linear-gradient(rgba(15, 23, 43, 0.85), rgba(15, 23, 43, 0.95)), url('../img/carousel-1.jpg') center center no-repeat !important;
    background-size: cover !important;
}
.cta-section {
    background: linear-gradient(rgba(15, 23, 43, 0.9), rgba(15, 23, 43, 0.9)), url('../img/carousel-2.jpg') center center no-repeat !important;
    background-size: cover !important;
}
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/appointment-background.jpg) center center no-repeat;
    background-size: cover;
}
.carousel-item {
    position: relative;
    min-height: 100vh;
}
.carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85));
    background-size: cover;
}
.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
}
.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
    background: transparent;
}
#carouselId .carousel-indicators {
    padding-bottom: 30px;
}
#carouselId .carousel-indicators li {
    border-top: 10px solid var(--bs-white);
    border-bottom: 10px solid var(--bs-white);
    border-right: 5px solid var(--bs-white);
    border-left: 5px solid var(--bs-white);
    margin-right: 10px;
    border-radius: 10px;
    transition: 0.5s;
}
#carouselId .carousel-indicators li.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    border-right: 15px solid var(--bs-primary);
    border-left: 15px solid var(--bs-primary);
}

/* ==========================================================================
   6. GLOBAL APP BUTTONS & STRUCTURAL APPLICATION INPUT CONFORMS
   ========================================================================== */
.btn {
    font-weight: 600;
    transition: .5s;
}
.btn-krashv {
    background-color: #ff7a00 !important;
    color: #ffffff !important;
    border: none;
    transition: 0.3s ease-in-out;
}
.btn-krashv:hover {
    background-color: #e06c00 !important;
    color: #ffffff !important;
}
.btn-primary {
    background-color: #ff7a00 !important;
    border-color: #ff7a00 !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: #e06c00 !important;
    border-color: #e06c00 !important;
}
.btn-primary-outline-0 {
    border: 0;
    color: var(--bs-white) !important;
}
.btn-light-outline-0 {
    border: 0;
    color: var(--bs-primary) !important;
}
.btn-primary-outline-0:hover,
.btn-light-outline-0:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}
.form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}
.form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: #ff7a00;
    box-shadow: none;
    color: #fff;
}
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/* ==========================================================================
   7. SECTIONS ARCHITECTURES MODULES (ABOUT, APPTS, PARTNERS, INLINE COMPONENT GRID)
   ========================================================================== */
/* Image & Brand Badges Layout */
.corporate-img {
    object-fit: cover;
    min-height: 480px;
    width: 100%;
}
.enterprise-badge {
    max-width: 220px;
    background-color: rgba(255, 122, 0, 0.95) !important;
}

/* Services App Section Blocks */
.services .services-item {
    transition: 0.5s;
}
.services .services-item:hover {
    background: var(--bs-primary) !important;
    border-color: var(--bs-secondary) !important;
}
.services .services-item:hover .services-content p,
.services .services-item:hover .services-content h3 {
    color: var(--bs-white);
    transition: 0.5s;
}
.services .services-item:hover .services-content a.btn {
    background: var(--bs-white);
    color: var(--bs-primary) !important;
}
.services .services-item:hover .services-content a.btn:hover {
    color: var(--bs-white) !important;
}
.services .services-item .services-img {
    overflow: hidden;
}
.services .services-item .services-img img {
    transition: 0.5s;
}
.services .services-item .services-img img:hover {
    transform: scale(1.3);
}

/* Video Component Lightbox Elements */
.video {
    position: relative;
    padding-right: 70px; 
    padding-bottom: 70px;
    border-radius: 10px;
}
.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%);
    margin-left: -35px;
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
}
.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-secondary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}
.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-primary);
    border-radius: 50%;
    transition: all 200ms;
}
.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}
#videoModal {
    z-index: 99999;
}
#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}
#videoModal .modal-body {
    position: relative;
    padding: 0px;
}
#videoModal .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;
}

/* Appointment Modular Components Blocks */
.appointment {
    background: #ffffff;
}
.appointment .appointment-form {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}
.appointment .appointment-time {
    background: var(--bs-secondary);
    border-radius: 10px;
}

/* Analytics Metric Counters Elements */
.counter-section .counter-item .counter-content {
    position: relative;
    margin-bottom: 60px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    z-index: 9;
}
.counter-section .counter-item {
    text-align: center;
    background: rgba(255, 255, 255, .5) !important;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    object-fit: cover;
    border-radius: 0 25% 0 25%;
}
.counter-section .counter-item .counter-content .svg-img {
    position: absolute;
    bottom: 0; 
    left: 50%; 
    margin-bottom: -50px; 
    margin-left: -45px; 
    transform: translateX(-50%) rotate(180deg);
}
.counter-section .counter-item .counter-quantity {
    width: 110px;
    height: 110px;
    border-radius: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
}

/* Tab Filter Gallery Infrastructure Components */
.gallery .tab-class .nav-item {
    padding: 0 0 20px 0;
}
.gallery .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}
.gallery .tab-class .nav-item a.active span {
    color: var(--bs-white) !important;
}
.gallery .gallery-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.gallery .gallery-img img {
    transition: 0.5s;
}
.gallery .gallery-img:hover img {
    transform: scale(1.3);
}
.gallery .gallery-img .gallery-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: 0.5s;
    opacity: 0;
    z-index: 1;
}
.gallery .gallery-img .search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 2;
}
.gallery .gallery-img:hover .gallery-overlay,
.gallery .gallery-img:hover .search-icon {
    opacity: 1;
}

/* Pricing Model Grid Blocks */
.pricing {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/appointment-background.jpg) center center no-repeat;
    background-size: cover;
}
.pricing .pricing-item {
    color: var(--bs-white);
}
.pricing .pricing-item .pricing-content {
    background: rgba(255, 255, 255, 0.4);
}
.pricing .owl-carousel.pricing-carousel {
    position: relative;
}
.pricing .owl-carousel.pricing-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: var(--bs-white);
}
.pricing .owl-carousel.pricing-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}
.pricing .owl-carousel.pricing-carousel .owl-nav .owl-prev,
.pricing .owl-carousel.pricing-carousel .owl-nav .owl-next {
    transition: 0.5s;
}
.pricing .owl-carousel.pricing-carousel .owl-nav .owl-prev:hover,
.pricing .owl-carousel.pricing-carousel .owl-nav .owl-next:hover {
    color: var(--bs-primary);
}

/* Corporate Staff Directory Component Frameworks */
.team .team-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.team .team-item .team-text {
    background: var(--bs-primary);
    transition: 0.5s;
}
.team .team-item .team-social {
    position: absolute;
    top: -180px; 
    left: 20px; 
    opacity: 0;
    transition: 0.5s;
}
.team .team-item:hover .team-social {
    top: 20px; 
    left: 20px;
    opacity: 1;
}
.team .team-item .team-img {
    position: relative;
    width: 100%;
}
.team .team-item .team-img::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: 0.5s ease;
}
.team .team-item:hover .team-img::after {
    bottom: 0;
    height: 100%;
}
.team .team-item:hover .team-text {
    background: var(--bs-secondary);
}

/* Customer Testimonials Display Carousel Slides */
.testimonial {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/testimonial-bg.jpg) center center no-repeat;
    background-size: cover;
}
.testimonial .testimonial-item {
    background: rgba(0, 0, 0, 0.4);
}
.testimonial .owl-carousel.testimonial-carousel {
    position: relative;
}
.testimonial .owl-carousel.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: var(--bs-white);
}
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
    transition: 0.5s;
}
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-primary);
}

/* Contact Entry Forms Section Wrappers */
.contact {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/appointment-background.jpg) center center no-repeat;
    background-size: cover;
}
.contact .contact-form {
    background: rgba(255, 255, 255, 0.6);
}
.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* SaaS Interactive Showcase Components Module */
.hero-saas {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}
.hero-saas::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,122,0,0.08), transparent 60%);
    z-index: 0;
}
.hero-saas > * {
    position: relative;
    z-index: 1;
}
.hero-title {
    letter-spacing: -1px;
    line-height: 1.1;
}
.hero-saas .btn {
    border-radius: 50px;
    transition: all 0.3s ease;
}
.hero-saas .btn:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   8. SYSTEM ANIMATIONS MATRIX CORE TIMELINES
   ========================================================================== */
/* Preloading App Handlers Spinner Screen */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
}

/* Circular Video Play Button Radial Infinite Pulse Animation */
@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

/* Image Flash Slider Interaction Loop Component */
.image-flash-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.flash-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: flashAnimation 12s infinite ease-in-out;
}

@keyframes flashAnimation {
    0%, 100% { opacity: 0; transform: scale(1); }
    8%, 33% { opacity: 1; transform: scale(1.04); }
    41% { opacity: 0; transform: scale(1.06); }
}

/* ==========================================================================
   9. SITE FOOTER FRAMEWORKS & LEGAL BLOCKS DEVIATIONS
   ========================================================================== */
footer {
    background: radial-gradient(circle at top, #0b1c33, #050f1d);
}
.footer {
    background: #051324 !important;
}
.footer .footer-item a,
.footer .footer-item p {
    color: #ffffff;
    line-height: 40px;
    font-size: 17px;
    transition: 0.5s;
}
.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-primary) !important;
}
.footer i {
    color: var(--bs-primary) !important;
}
.footer-link {
    transition: 0.3s ease;
}
.footer-link:hover {
    color: #ff7a00 !important;
    padding-left: 6px;
}
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}

/* ==========================================================================
   10. GLOBAL THEME POLISH OVERRIDES (CLEAN UTILITY POLISH)
   ========================================================================== */
.text-primary {
    color: #ff7a00 !important;
}
.text-secondary {
    color: #0a2240 !important;
}
#searchModal .modal-content {
    background: rgba(250, 250, 250, .6);
}