@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=Fragment+Mono&display=swap');

:root {
    --primary: #F3681D;
    --secondary: #F5B041;
    --light: #FFFDF9;
    --dark: #110D0A;
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Instrument Sans', sans-serif;
}

/********** Template CSS **********/
/* Professional Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
    background: #F3681D; /* Brand Primary */
    border-radius: 5px;
    border: 2px solid #F8F9FA;
}
::-webkit-scrollbar-thumb:hover {
    background: #D35400;
}
html {
    scrollbar-width: thin;
    scrollbar-color: #F3681D #F8F9FA;
    scroll-behavior: smooth;
}





.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

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

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

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

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

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(256, 256, 256, .1)
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

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

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

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(135deg, rgba(243, 104, 29, 0.9), rgba(245, 176, 65, 0.9));
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

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


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}


/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

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


/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

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

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

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.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 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    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: var(--secondary);
    margin-right: 10px;
}

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

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* Bootstrap overrides for brand consistency */
.text-primary {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #D35400 !important;
    border-color: #D35400 !important;
    color: #FFFFFF !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
.spinner-border.text-primary {
    border-color: var(--primary) transparent var(--primary) transparent !important;
}

/* ==========================================
   Kiranam Media Premium Eye-Catching Effects
   ========================================== */

/* Animated Gradients for Slides */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.carousel-item-gradient-1 {
    background: linear-gradient(-45deg, #F3681D, #F5B041, #D35400, #F8C471) !important;
    background-size: 300% 300% !important;
    animation: gradientShift 10s ease infinite !important;
}

.carousel-item-gradient-2 {
    background: linear-gradient(-45deg, #1E2229, #F3681D, #2E333F, #D35400) !important;
    background-size: 300% 300% !important;
    animation: gradientShift 10s ease infinite !important;
}

.carousel-item-gradient-3 {
    background: linear-gradient(-45deg, #F3681D, #1F2937, #E64A19, #111827) !important;
    background-size: 300% 300% !important;
    animation: gradientShift 10s ease infinite !important;
}

/* Glassmorphism Hover Cards for Services */
.service-item {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03) !important;
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(243, 104, 29, 0.15) !important;
    border-color: rgba(243, 104, 29, 0.3) !important;
    background: #FFFFFF !important;
}

.service-item .d-inline-flex {
    transition: all 0.4s ease;
}

.service-item:hover .d-inline-flex {
    background-color: var(--primary) !important;
    transform: rotate(360deg);
}

.service-item:hover .d-inline-flex i {
    color: #FFFFFF !important;
}

/* Primary Button Glowing & Pulse Effect */
.btn-primary {
    box-shadow: 0 4px 15px rgba(243, 104, 29, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(243, 104, 29, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Fact Cards Hover Glow */
.fact-item {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
}

.fact-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(243, 104, 29, 0.15) !important;
}

/* Glassmorphism Sticky Navbar */
.navbar.sticky-top {
    background: rgba(243, 104, 29, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

/* Input Fields Focus Effect */
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(243, 104, 29, 0.25) !important;
}


/* SVG Illustrations Transitions inside Service Cards */
.service-item svg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-item:hover svg {
    stroke: #FFFFFF !important;
    transform: scale(1.1) rotate(5deg);
}

.service-item:hover svg circle,
.service-item:hover svg rect,
.service-item:hover svg path,
.service-item:hover svg line {
    fill: none !important;
    stroke: #FFFFFF !important;
}

/* Feature selector buttons styling */
.feature-tab-btn {
    transition: all 0.3s ease !important;
}
.feature-tab-btn:hover {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
    transform: translateX(5px);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #F3681D #F8F9FA;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .section-title {
    font-family: 'Instrument Sans', sans-serif !important;
    font-weight: 700 !important;
}

/* SaaS style cards and layout adjustments */
.btn {
    border-radius: 50px !important;
}
.form-control, .form-select {
    border-radius: 50px !important;
}
.service-item, .fact-item, .project-item, .testimonial-item, .team-item {
    border-radius: 20px !important;
    border: 1px solid #EBEBEB !important;
    box-shadow: 0 4px 20px rgba(9, 22, 40, 0.02) !important;
    background: #FFFFFF !important;
    overflow: hidden;
}

.service-item:hover, .fact-item:hover, .project-item:hover, .testimonial-item:hover, .team-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 32px rgba(9, 22, 40, 0.08) !important;
    border-color: rgba(243, 104, 29, 0.3) !important;
}

/* Premium Hero Carousel & Floating Glass Card Styling */
.carousel-item-1 {
    background: linear-gradient(rgba(9, 22, 40, 0.6), rgba(9, 22, 40, 0.6)), url('../img/hero-1.png') center center no-repeat;
    background-size: cover !important;
}
.carousel-item-2 {
    background: linear-gradient(rgba(9, 22, 40, 0.6), rgba(9, 22, 40, 0.6)), url('../img/hero-2.png') center center no-repeat;
    background-size: cover !important;
}
.carousel-item-3 {
    background: linear-gradient(rgba(9, 22, 40, 0.6), rgba(9, 22, 40, 0.6)), url('../img/hero-3.png') center center no-repeat;
    background-size: cover !important;
}

.hero-content-card {
    background: rgba(9, 22, 40, 0.72) !important;
    padding: 45px 50px !important;
    border-radius: 24px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
    margin: 0 auto !important;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 6px !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES (SenseHawk SaaS Aesthetic)
   ========================================================================== */

/* Tablet & Mobile Logo Scaling */
@media (max-width: 991.98px) {
    .navbar-light .navbar-brand {
        max-width: 250px !important;
    }
}

/* Mobile Devices (Portrait & Landscape) */
@media (max-width: 767.98px) {
    /* Adjust Carousel Height */
    #header-carousel .carousel-item {
        min-height: 520px !important;
        height: auto !important;
    }
    
    /* Adjust Carousel Captions (Frosted Card) */
    .hero-content-card {
        padding: 30px 20px !important;
        border-radius: 16px !important;
        max-width: 92% !important;
    }
    
    .hero-content-card h1.display-3 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    .hero-content-card p.fs-5 {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        line-height: 1.4 !important;
    }
    
    .hero-content-card .btn {
        padding: 8px 18px !important;
        font-size: 0.85rem !important;
    }
    
    /* Hide Arrows on Mobile to Avoid Clutter */
    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        display: none !important;
    }
    
    /* Swipeable Horizontal Tab Bar for "Why Choose Us" Dashboard */
    .nav-pills {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide standard scrollbar on Firefox */
    }
    
    .nav-pills::-webkit-scrollbar {
        display: none; /* Hide scrollbar on Chrome/Safari */
    }
    
    .feature-tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-right: 10px !important;
        margin-bottom: 0 !important;
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    
    /* Team profile SVGs mobile scaling */
    .team-item svg {
        width: 55% !important;
    }
    
    /* Reduce excessive template padding on sections */
    .container-xxl {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* Extra Small Devices (Phones under 576px) */
@media (max-width: 575.98px) {
    #header-carousel .carousel-item {
        min-height: 480px !important;
    }
    .hero-content-card h1.display-3 {
        font-size: 1.5rem !important;
    }
    .hero-content-card p.fs-5 {
        font-size: 0.88rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}



/* Topbar Info Line Styling */
.top-bar {
    background: #FFFFFF !important;
    border-bottom: 1px solid #EBEBEB !important;
}

/* Force Navbar to Slate Dark Background */
.navbar {
    background: var(--dark) !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Sticky frosted glass navbar */
.navbar.sticky-top {
    background: rgba(17, 13, 10, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Links color default and active state */
.navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500 !important;
    transition: all 0.25s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary) !important; /* Highlights active/hover links in Orange */
}

/* Dropdown Menu styling in Dark theme */
.navbar .dropdown-menu {
    background: var(--dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
    padding: 10px 20px !important;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary) !important;
}

/* Mobile Hamburger Toggler Styling */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.15) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(1) !important; /* Makes hamburger icon white */
}

/* Mobile menu container border */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--dark) !important;
        padding: 15px !important;
        border-radius: 12px !important;
        margin-top: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
}

/* ==========================================================================
   MOBILE LOGO & INTERACTIVE BRAND TEXT OVERRIDES
   ========================================================================== */

/* Navbar Logo sizing details */
.navbar-logo {
    height: 48px !important;
    width: auto !important;
    max-height: 55px !important;
    transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
    .navbar-logo {
        height: 60px !important; /* Increased logo size in mobile view */
        max-height: 65px !important;
    }
    
    /* Interactive mobile logo text hover effects */
    .navbar-brand.d-lg-none {
        color: var(--primary) !important;
        font-family: var(--font-title) !important;
        font-weight: 800 !important;
        font-size: 20px !important;
        letter-spacing: 1px !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-brand.d-lg-none:hover {
        transform: scale(1.05);
        text-shadow: 0 0 10px rgba(243, 104, 29, 0.4);
    }
}

/* ==========================================================================
   MOBILE VISITOR EXPERIENCE UPDATES
   ========================================================================== */

/* Navbar Brand sizing detail on mobile */
.navbar-brand.d-lg-none .navbar-logo {
    height: 42px !important;
    width: auto !important;
    max-height: 45px !important;
    margin: 5px 0 !important;
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 10px 15px !important;
    }
}

/* ==========================================================================
   APP-LIKE MOBILE VISITOR EXPERIENCE & WHITE NAVBAR OVERRIDES
   ========================================================================== */

/* Navbar Background override (White) */
.navbar {
    background: #FFFFFF !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid #EBEBEB !important;
}

/* Sticky white navbar with frosted glass */
.navbar.sticky-top {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Links color - Dark default with Orange Hover/Active */
.navbar .navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 600 !important;
    transition: all 0.25s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary) !important; /* Orange links */
}

/* Dropdown Menu styling in light theme */
.navbar .dropdown-menu {
    background: #FFFFFF !important;
    border: 1px solid #EBEBEB !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.navbar .dropdown-item {
    color: var(--dark) !important;
    transition: all 0.2s ease;
    padding: 10px 20px !important;
}

.navbar .dropdown-item:hover {
    background: #FFFDF9 !important;
    color: var(--primary) !important;
}

/* Mobile Hamburger Toggler Styling for White Background */
.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.08) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: none !important; /* Standard black hamburger icon for white background */
}

/* Mobile menu container inside collapse */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #FFFFFF !important;
        padding: 15px !important;
        border-radius: 12px !important;
        margin-top: 10px !important;
        border: 1px solid #EBEBEB !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    }
    
    .navbar .navbar-nav .nav-link {
        color: var(--dark) !important;
        border-bottom: 1px solid #F5F5F5;
        padding: 10px 0 !important;
    }
    
    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Mobile Bottom Tab Bar (App-like Experience) */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
    z-index: 9999 !important;
    padding-bottom: env(safe-area-inset-bottom); /* Notch support */
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B !important; /* Cool Slate */
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-bar-item i {
    font-size: 18px !important;
    margin-bottom: 4px !important;
    transition: transform 0.2s ease;
}

.mobile-bar-item:active i {
    transform: scale(0.85); /* Tactile tap feedback */
}

/* Active state tab highlights in brand orange */
.mobile-bar-item.active {
    color: var(--primary) !important;
}

.mobile-bar-item.active i {
    color: var(--primary) !important;
}

/* Spacing buffer to prevent content overlapping the bottom tab bar */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 80px !important;
    }
    
    /* Hide bottom bar on desktop/tablet */
    .mobile-bottom-bar {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

/* ==========================================================================
   SPACING & MARGIN COMPACTING OVERRIDES (Removing Bloated Space)
   ========================================================================== */

/* Reduce section margins globally for both desktop and mobile */
.container-xxl {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 2.2rem !important;
}

/* Mobile-Specific Extra Compact Spacings */
@media (max-width: 767.98px) {
    .container-xxl {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 1.6rem !important;
        padding-bottom: 1.6rem !important;
    }
    
    .my-5 {
        margin-top: 1.6rem !important;
        margin-bottom: 1.6rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.2rem !important;
    }
    
    .mt-5 {
        margin-top: 1.2rem !important;
    }
    
    /* Compact hero spacing */
    #header-carousel {
        margin-bottom: 1.5rem !important;
    }
    
    /* Compact Bootstrap column grid gaps on mobile */
    .g-5, .gx-5 {
        --bs-gutter-x: 1.5rem !important;
    }
    .g-5, .gy-5 {
        --bs-gutter-y: 1.5rem !important;
    }
    
    /* Minimize section titles spacing */
    .section-title {
        margin-bottom: 15px !important;
    }
}

/* ==========================================================================
   INPUT VALIDATION & SUCCESS MODAL STYLES (No-Redirect Forms)
   ========================================================================== */

/* Red outline for invalid inputs */
.form-control.is-invalid, 
.form-select.is-invalid {
    border: 1px solid #dc3545 !important;
    background-image: none !important;
}

/* Validation error text under inputs */
.invalid-feedback {
    display: block !important;
    color: #dc3545 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    text-align: left !important;
}

/* Success Modal Backdrop */
.form-success-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 13, 10, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-success-backdrop.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Success Modal Card */
.form-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9) !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
    z-index: 10000 !important;
    max-width: 420px;
    width: 90%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-modal.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Green Circular Check Icon */
.success-icon-check {
    width: 70px;
    height: 70px;
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    margin-bottom: 20px !important;
}

/* ==========================================================================
   ROBUST RESPONSIVE & LAYOUT SAFETY OVERRIDES (Bulletproof viewport fits)
   ========================================================================== */

/* Universal layout leak safety */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Ensure all images and SVGs scale to their containers */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Adaptive Form and Container Paddings on mobile */
@media (max-width: 575.98px) {
    .p-5, 
    .bg-light.rounded.p-5, 
    .bg-white.rounded.p-5 {
        padding: 1.5rem !important;
    }
    
    .p-4 {
        padding: 1.25rem !important;
    }
}

/* Responsive Headline Scales */
@media (max-width: 575.98px) {
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2.2rem !important; }
    .display-3 { font-size: 1.8rem !important; line-height: 1.25 !important; }
    .display-4 { font-size: 1.5rem !important; }
    .display-5 { font-size: 1.3rem !important; }
    .display-6 { font-size: 1.2rem !important; }
    
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.15rem !important; }
}

/* Auto-stack service action buttons on very narrow screens (e.g. 320px devices) */
@media (max-width: 380px) {
    .service-item .mt-4 {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .service-item .mt-4 a {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* Auto-stack career toggler tabs on narrow viewports */
@media (max-width: 480px) {
    .d-flex.justify-content-center.gap-3 {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .d-flex.justify-content-center.gap-3 button {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   TAILWIND & BOOTSTRAP COLLAPSE CLASS CONFLICT FIX
   ========================================================================== */
.navbar-collapse.collapse {
    visibility: visible !important;
}

/* ==========================================================================
   SMART REVEAL-ON-SCROLL-UP STICKY NAVBAR OVERRIDES
   ========================================================================== */
.sticky-top {
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease !important;
}

/* Fixed state active only on scroll-up */
.sticky-top.is-sticky {
    position: fixed !important;
    width: 100% !important;
    z-index: 1030 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Navbar brand logo dimensions on desktop */
.navbar .navbar-brand img.navbar-logo {
    max-height: 45px !important;
    height: 45px !important;
    width: auto !important;
    transition: transform 0.3s ease;
}

/* Hover scales logo slightly */
.navbar .navbar-brand:hover img.navbar-logo {
    transform: scale(1.03);
}

/* Professional spacing for navigation links next to logo on desktop */
@media (min-width: 992px) {
    .navbar .navbar-nav {
        margin-left: 3rem !important; /* Clean distance from logo brand on left */
    }
    
    .navbar .navbar-nav .nav-link {
        padding: 20px 16px !important; /* Perfectly centered link tabs with balanced horizontal gaps */
        position: relative;
    }
    
    /* Interactive under-line highlight effect for navbar tabs */
    .navbar .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 12px;
        left: 16px;
        background-color: var(--primary);
        transition: width 0.3s ease;
    }
    
    .navbar .navbar-nav .nav-link.active::after,
    .navbar .navbar-nav .nav-link:hover::after {
        width: calc(100% - 32px);
    }
}
