/* --- Custom Styles --- */

:root {
    --sj-blue: #0066CC;
    --sj-dark-blue: #004a99;
    --sj-light-gray: #f8f9fa;
    --sj-text: #333;
    --sj-text-light: #555;
    --sj-border: #dee2e6;
    --sj-gradient: linear-gradient(135deg, var(--sj-blue) 0%, var(--sj-dark-blue) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    /* Attach the scrollspy */
    position: relative;
}

body.body-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.body-padding-top {
    padding-top: 70px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.display-3 {
    font-weight: 900;
}

.lead {
    font-weight: 400;
}

/* --- Navbar --- */
.navbar {
    transition: background-color 0.3s ease;
}

/* Subpage navbar is always in the "scrolled" (light) state */
.navbar-subpage {
    transition: background-color 0.3s ease !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-brand {
    color: #fff;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.2s;
}

.navbar-light .nav-link {
    color: rgb(31 68 149);
    font-weight: 500;
    font-size: 18px;
    transition: color .15s;
}

/* .nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: 18px;
    font-weight: var(--bs-nav-link-font-weight);
    color: rgb(31 68 149);
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: color .15s 
ease-in-out, background-color .15s 
ease-in-out, border-color .15s 
ease-in-out;
} */

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #fff;
}

/* --- Page Header (for sub-pages) --- */
.page-header {
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sj-blue), var(--sj-dark-blue));
}

/* Re-use animated background "jungle" effect */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(27deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 10px 0px,
        linear-gradient(27deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 0px 10px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 10px, transparent 10px),
        linear-gradient(rgba(0, 0, 0, 0.05) 10px, transparent 10px);
    background-size: 20px 20px;
    animation: bg-pan 60s linear infinite;
    z-index: 0;
    opacity: 0.3;
}


/* --- Hero Section --- */
#home {
    padding: 12rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sj-blue), var(--sj-dark-blue));
}

/* Animated background "jungle" effect */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(27deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 10px 0px,
        linear-gradient(27deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 0px 10px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 10px, transparent 10px),
        linear-gradient(rgba(0, 0, 0, 0.05) 10px, transparent 10px);
    background-size: 20px 20px;
    animation: bg-pan 60s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

/* --- ADDED: Tech Graphic Overlay --- */
#home::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    /* Cover the right 70% of the screen */
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-200 800C50 400 300 0 800 200' stroke='white' stroke-width='1'/%3E%3Cpath d='M-150 800C100 450 350 50 800 250' stroke='white' stroke-width='1'/%3E%3Cpath d='M-100 800C150 500 400 100 800 300' stroke='white' stroke-width='1'/%3E%3Cpath d='M-50 800C200 550 450 150 800 350' stroke='white' stroke-width='1'/%3E%3Cpath d='M0 800C250 600 500 200 800 400' stroke='white' stroke-width='1'/%3E%3Cpath d='M50 800C300 650 550 250 800 450' stroke='white' stroke-width='1'/%3E%3Cpath d='M100 800C350 700 600 300 800 500' stroke='white' stroke-width='1'/%3E%3Cpath d='M150 800C400 750 650 350 800 550' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    opacity: 0.1;
    /* Very subtle */
    z-index: 0;
    mix-blend-mode: overlay;
    /* Blends nicely with the gradient */
}

@keyframes bg-pan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% -100%;
    }
}

.page-header .container {
    position: relative;
    z-index: 1;
}

#home .container {
    position: relative;
    /* Ensure content is above the pseudo-element */
    z-index: 1;
}

/* --- Glass Section --- */
.glass-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    /* Re-use the hero's animated background */
    background: linear-gradient(135deg, var(--sj-blue), var(--sj-dark-blue));
}

.glass-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(27deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 10px 0px,
        linear-gradient(27deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 0px 10px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 10px, transparent 10px),
        linear-gradient(rgba(0, 0, 0, 0.05) 10px, transparent 10px);
    background-size: 20px 20px;
    animation: bg-pan 60s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

.glass-section .container {
    position: relative;
    z-index: 1;
}

.glass-section .section-title,
.glass-section .section-subtitle {
    color: #fff;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    color: #fff;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
}

.glass-card .glass-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.glass-card h5 {
    font-weight: 700;
}


/* --- Section Styling --- */
/* .section {
    padding: 6rem 0;
} */

.values-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sj-blue), var(--sj-dark-blue));
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(27deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 10px 0px,
        linear-gradient(27deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 0px 10px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 10px, transparent 10px),
        linear-gradient(rgba(0, 0, 0, 0.05) 10px, transparent 10px);
    background-size: 20px 20px;
    animation: bg-pan 60s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

.values-section .container {
    position: relative;
    z-index: 1;
}

.values-section .section-title,
.values-section .section-subtitle {
    color: #fff;
}

.glass-card p {
    font-size: 0.95rem;
}

/* --- Global --- */
.contact-section {
    padding: 80px 0;
    position: relative;
}

.contact-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sj-dark-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--sj-text-light);
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.content-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--sj-border);
    margin-bottom: 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    /* Good practice for patterns */
    background-color: #fff;
    /* Explicitly set base background */
    /* --- ADDED: Tech dot-grid pattern --- */
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.04) 1px, transparent 0);
    background-size: 20px 20px;
}

.section-bg {
    background-color: var(--sj-light-gray);
}

.section-title {
    font-weight: 900;
    color: var(--sj-dark-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* --- Services Tabs --- */
.services-tabs .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sj-dark-blue);
    border: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.services-tabs .nav-link:hover {
    color: var(--sj-blue);
}

.services-tabs .nav-link.active {
    color: var(--sj-blue);
    background-color: transparent;
    border-bottom-color: var(--sj-blue);
}

.service-item {
    padding: 2rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    height: 100%;
}

.service-item h5 {
    font-weight: 700;
    color: var(--sj-dark-blue);
    margin-bottom: 1rem;
}

.service-item i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.service-item p {
    color: #555;
    line-height: 1.7;
}

/* NEW: Styling for service links */
.service-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--sj-blue);
}

/* --- Services --- */
.service-card {
    background: #fff;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.service-card .service-icon {
    font-size: 3rem;
    color: var(--sj-blue);
    margin-bottom: 1.5rem;
}

.service-card h5 {
    font-weight: 700;
    color: #333;
}

/* --- Services Tabs --- */
.services-tabs .nav-pills .nav-link {
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50rem;
    font-weight: 700;
    color: var(--sj-blue);
    background-color: #e6f0fa;
    transition: all 0.3s ease;
}

.services-tabs .nav-pills .nav-link.active {
    background-color: var(--sj-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.services-tabs .nav-pills .nav-link:not(.active):hover {
    background-color: #d1e3f8;
}

.services-tabs .tab-content {
    padding-top: 3rem;
}

/* --- Services Slider (REMOVED) --- */
/* #services .swiper-container {
            width: 100%;
            padding: 2rem 0;
            padding-left: 15px;
            padding-right: 15px;
        }
        */

#services .swiper-slide {
    height: auto;
    /* Let card content define height */
}

#services .service-card {
    height: 100%;
    /* Make all cards in view the same height */
}

/* --- Team Section --- */
.team-card {
    background: #fff;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.team-card img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--sj-blue);
}

.team-card h5 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.team-card .team-title {
    color: var(--sj-blue);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Swiper Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: var(--sj-blue) !important;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
}

/* Adjust position */
.swiper-button-prev {
    left: 0px;
}

.swiper-button-next {
    right: 0px;
}

@media (max-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on mobile */
    }

    #services .swiper-container {
        padding-left: 0;
        padding-right: 0;
    }
}

*/

/* --- About --- */
.about-content p:last-of-type {
    margin-bottom: 0;
}

.about-icon {
    font-size: 4rem;
    color: var(--sj-blue);
}

/* --- Why Choose Us --- */
.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--sj-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* --- Contact --- */
.form-control:focus {
    border-color: var(--sj-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.form-control,
.form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

/* --- Mission/Vision --- */
.mission-vision-box {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.mission-vision-box i {
    font-size: 3rem;
    color: var(--sj-blue);
    margin-bottom: 1.5rem;
    display: block;
}

/* --- Project Card Styling --- */
.project-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    /* To contain the image */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.1);
}

.project-card img {
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s ease;
}

.project-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card .card-title {
    font-weight: 700;
}

.project-card .card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.project-card .card-title a:hover {
    color: var(--sj-blue);
}

.project-card:hover img {
    opacity: 0.85;
}

.project-card .card-text {
    flex-grow: 1;
    color: #555;
}

.project-card .project-tags {
    margin-top: 1rem;
}

.project-card .project-tags .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* --- Blog Cards --- */
.blog-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--sj-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--sj-border);
}

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.blog-card-body h5 {
    font-weight: 700;
    color: var(--sj-dark-blue);
    margin-bottom: 0.5rem;
}

.blog-card-body a {
    text-decoration: none;
    color: var(--sj-dark-blue);
    transition: color 0.3s ease;
}

.blog-card-body a:hover {
    color: var(--sj-blue);
}

.blog-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sj-blue);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--sj-text-light);
    margin-bottom: 1rem;
}

.blog-card-footer {
    padding: 1rem 1.5rem;
    background: var(--sj-light-gray);
    border-top: 1px solid var(--sj-border);
}

.blog-card-footer a {
    text-decoration: none;
    font-weight: 600;
    color: var(--sj-blue);
}

/* Class to manage post visibility for pagination */
.blog-post-item {
    display: none;
    /* Hide all posts by default */
}

/* --- Sidebar Widgets --- */
.sidebar-widget {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--sj-border);
    margin-bottom: 2rem;
}

.sidebar-widget-title {
    font-weight: 700;
    color: var(--sj-dark-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sj-border);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li a {
    text-decoration: none;
    color: var(--sj-text-light);
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--sj-blue);
}

.sidebar-widget .form-control:focus {
    border-color: var(--sj-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* --- Footer --- */
footer {
    background: #001a33;
    /* Darker blue */
    color: #aaa;
    padding: 60px 0;
    /* margin-top: 80px; */
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* --- Contact Info --- */
.contact-info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--sj-border);
    text-align: center;
    height: 100%;
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--sj-blue);
    margin-bottom: 1rem;
}

.contact-info-card h5 {
    font-weight: 700;
    color: var(--sj-dark-blue);
}

.contact-info-card p,
.contact-info-card a {
    font-size: 1rem;
    color: var(--sj-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--sj-blue);
}

/* --- Contact Form --- */
.form-label {
    font-weight: 600;
    color: var(--sj-text-light);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sj-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.btn-submit {
    background-color: var(--sj-blue);
    border-color: var(--sj-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--sj-dark-blue);
    border-color: var(--sj-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

/* --- Map --- */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--sj-border);
    height: 450px;
    background-color: var(--sj-light-gray);
    /* Removed flex properties */
}

/* Style for the embedded iframe */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    /* ADDED */
    align-items: center;
    /* ADDED */
    justify-content: center;
    /* ADDED */
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float i {
    /* REMOVED margin-top: 15px; */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 0.9rem;
    max-width: 300px;
}

footer .footer-links a {
    color: #aaa;
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--sj-blue);
}

footer .social-links a {
    font-size: 1.5rem;
    color: #aaa;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--sj-blue);
}

footer .copyright {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

footer .copyright a {

    color: rgb(255 255 255) !important;
    text-decoration: none !important;
}

/* --- Animation --- */
/* Class to apply for fade-in effect */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sj-blue), var(--sj-dark-blue));
}

.cta-section::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(27deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.1) 5px, transparent 5px) 10px 0px,
        linear-gradient(27deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 0px 10px,
        linear-gradient(207deg, rgba(0, 0, 0, 0.05) 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 10px, transparent 10px),
        linear-gradient(rgba(0, 0, 0, 0.05) 10px, transparent 10px);
    background-size: 20px 20px;
    animation: bg-pan 60s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* --- Idle Overlay --- */
#idle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

#idle-clock {
    font-size: 4rem;
    /* Adjusted for responsiveness */
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#idle-overlay p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

@media (min-width: 768px) {
    #idle-clock {
        font-size: 6rem;
    }

    #idle-overlay p {
        font-size: 1.5rem;
    }
}

/* --- service-*.html Specific --- */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 100;
}

.offering-card {
    padding: 2rem;
    border: 1px solid var(--sj-border);
    border-radius: 0.75rem;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.offering-card i {
    font-size: 2.5rem;
    color: var(--sj-blue);
    margin-bottom: 1rem;
    display: block;
}

.offering-card h5 {
    font-weight: 700;
    color: var(--sj-dark-blue);
}

.process-flow {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.process-step {
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 1rem;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--sj-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    border: 5px solid #fff;
    box-shadow: 0 0 0 3px var(--sj-blue);
    z-index: 2;
}

.process-step h6 {
    font-weight: 700;
    color: var(--sj-dark-blue);
}

.process-step:not(:last-child)::after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-weight: 900;
    position: absolute;
    top: 28px;
    font-size: 2.5rem;
    color: var(--sj-blue);
    opacity: 0.3;
    z-index: -1;
    left: 50%;
    width: 100%;
    text-align: right;
    padding-right: 45px;
}

.project-card .project-card-body {
    padding: 1.5rem;
}

.project-card .project-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50rem;
    background: var(--sj-blue);
    color: #fff;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.tech-stack i {
    font-size: 3rem;
    color: var(--sj-text-light);
    transition: color 0.3s ease;
}

.tech-stack i:hover {
    color: var(--sj-dark-blue);
}

/* .cta-section {
    background: var(--sj-gradient);
    color: #fff;
    padding: 2.5rem;
    text-align: center;
    border-radius: 1rem;
} */

.cta-section h2 {
    font-weight: 800;
    font-size: 2rem;
    color: #fff;
    /* Added for specificity */
    margin-bottom: 1rem;
    /* Added for spacing */
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-section .btn-light {
    font-weight: 700;
    color: var(--sj-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
    font-size: 1rem;
}

.related-services a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--sj-text-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sj-border);
    transition: color 0.3s ease;
}

.related-services a:last-child {
    border-bottom: none;
}

.related-services a:hover {
    color: var(--sj-blue);
}

.related-services a:hover i {
    color: var(--sj-blue);
}

.related-services i {
    font-size: 1.25rem;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    color: #aaa;
    transition: color 0.3s ease;
}

.related-services span {
    font-weight: 600;
}

/* --- Modal --- */
.modal-header {
    background: linear-gradient(135deg, var(--sj-blue), var(--sj-dark-blue));
    color: #fff;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-title {
    font-weight: 700;
}

.form-label {
    font-weight: 600;
    color: var(--sj-text-light);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sj-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.modal-footer .btn-primary {
    background-color: var(--sj-blue);
    border-color: var(--sj-blue);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.modal-footer .btn-primary:hover {
    background-color: var(--sj-dark-blue);
    border-color: var(--sj-dark-blue);
}

.modal-body {
    padding: 2rem;
}

/* --- AI Chat Widget --- */
#ai-chat-widget {
    position: fixed;
    bottom: 40px;
    right: 120px;
    /* Next to WhatsApp */
    z-index: 1010;
}

#ai-chat-button {
    width: 60px;
    height: 60px;
    background: var(--sj-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

#ai-chat-button:hover {
    background: var(--sj-dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

#chat-window {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 40px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-direction: column;
    z-index: 1009;
}

#chat-window.open {
    display: flex;
}

.chat-header {
    background: var(--sj-gradient);
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-weight: 600;
}

.chat-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--sj-light-gray);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.5;
}

.chat-message.user {
    background-color: var(--sj-blue);
    color: #fff;
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
}

.chat-message.bot {
    background-color: #fff;
    color: var(--sj-text);
    border: 1px solid var(--sj-border);
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
}

.chat-message.bot.typing {
    color: #888;
    font-style: italic;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--sj-border);
    background: #fff;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid var(--sj-border);
    border-radius: 50rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
}

#chat-input:focus {
    outline: none;
    border-color: var(--sj-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

#chat-send-btn {
    border: none;
    background: var(--sj-blue);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

#chat-send-btn:hover {
    background: var(--sj-dark-blue);
}

/* --- Suggested Questions --- */
.suggested-questions {
    padding: 0.5rem 1rem 1rem 1rem;
    background: var(--sj-light-gray);
    border-bottom: 1px solid var(--sj-border);
}

.suggested-question {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sj-blue);
    background-color: #fff;
    border: 1px solid var(--sj-blue);
    border-radius: 50rem;
    padding: 0.3rem 0.75rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggested-question:hover {
    background-color: var(--sj-blue);
    color: #fff;
}

/* --- FAQ Accordion --- */
.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid var(--sj-border);
    border-radius: 0 !important;
    background-color: #fff;
    margin-bottom: 0.5rem;
    /* Add some space between items */
    border-radius: 0.75rem !important;
    /* Rounded corners */
    border: 1px solid var(--sj-border);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--sj-dark-blue);
    background-color: #fff;
    /* White background */
    box-shadow: none;
    padding: 1.5rem;
    border-radius: 0.75rem !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--sj-blue);
    background-color: var(--sj-light-gray);
    /* Light gray when open */
    box-shadow: none;
}

/* Custom +/ - icon */
.faq-accordion .accordion-button::after {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    content: "\F4FE";
    /* Bootstrap icon: plus-lg */
    font-family: "bootstrap-icons";
    font-weight: 900;
    background-image: none;
    color: var(--sj-blue);
    transition: transform 0.2s ease-in-out;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    content: "\F463";
    /* Bootstrap icon: dash-lg */
    transform: none;
    /* No rotation needed */
}

.faq-accordion .accordion-body {
    color: var(--sj-text-light);
    line-height: 1.7;
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color: #fff;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.faq-accordion .accordion-body ul,
.faq-accordion .accordion-body ol {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.faq-accordion .accordion-body li {
    margin-bottom: 0.5rem;
}

.faq-category-title {
    font-weight: 800;
    color: var(--sj-blue);
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--sj-blue);
    padding-bottom: 0.5rem;
}

.faq-category-title:first-of-type {
    margin-top: 0;
}

/* --- blog-single-post.html Specific --- */
.post-hero {
    background: var(--sj-dark-blue);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* border-bottom-left-radius: 2rem;
            border-bottom-right-radius: 2rem; */
}

.post-hero .post-category {
    font-size: 1rem;
    font-weight: 700;
    color: #88CCFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.post-hero .post-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0 1.5rem 0;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.post-hero .post-meta {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-hero .post-meta img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.post-hero .post-meta strong {
    color: #fff;
    font-weight: 600;
}

/* NEW: Read time style */
.post-meta .read-time {
    position: relative;
    margin-left: 1rem;
    padding-left: 1.25rem;
}

.post-meta .read-time::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.content-feature-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sj-border);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--sj-text);
}

.post-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--sj-dark-blue);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 700;
    color: var(--sj-dark-blue);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sj-light-gray);
}

.post-content h3 {
    font-size: 2rem;
}

.post-content h4 {
    font-size: 1.6rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: var(--sj-blue);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--sj-dark-blue);
    text-decoration: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 500;
    color: var(--sj-dark-blue);
    border-left: 5px solid var(--sj-blue);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    background: var(--sj-light-gray);
    border-radius: 0 0.75rem 0.75rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.post-content li {
    margin-bottom: 0.8rem;
}

.post-content pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2.5rem 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-content code {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--sj-dark-blue);
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9em;
}

.post-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.post-footer {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--sj-border);
    padding-left: 1rem;
    padding-right: 1rem;
}

.post-tags .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6em 0.5em;
    background-color: var(--sj-light-gray);
    color: var(--sj-text-light);
    border: 1px solid var(--sj-border);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.post-tags .badge:hover {
    background-color: var(--sj-blue);
    color: #fff;
    border-color: var(--sj-blue);
}

.social-share a {
    font-size: 1.4rem;
    color: #fff;
    margin-left: 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-share a:hover {
    color: var(--sj-blue);
    transform: translateY(-2px);
}

.author-box {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-top: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sj-border);
}

.author-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 2rem;
    border: 3px solid var(--sj-blue);
    flex-shrink: 0;
}

.author-box h5 {
    font-weight: 700;
    color: var(--sj-dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.author-box p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--sj-text-light);
}

.related-posts {
    margin-top: 4rem;
}

.related-posts .section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--sj-dark-blue);
    margin-bottom: 2rem;
    text-align: left;
    border-bottom: 1px solid var(--sj-border);
    padding-bottom: 1rem;
}

.related-post-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--sj-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--sj-border);
}

.related-post-card-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.related-post-card-body h6 {
    font-weight: 700;
    color: var(--sj-dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-post-card-body a {
    text-decoration: none;
}

.related-post-card-body a:hover {
    color: var(--sj-blue);
}

.related-post-meta {
    font-size: 0.8rem;
    color: var(--sj-text-light);
    margin-bottom: 0.75rem;
}

/* MODIFIED: TOC Styling */
.sidebar-sticky .toc-widget-list {
    list-style-type: decimal;
    /* Use numbers */
    padding-left: 1.5rem;
    margin: 0;
}

.sidebar-sticky .toc-widget-list li {
    margin-bottom: 0.5rem;
}

.sidebar-sticky .toc-widget-list li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--sj-text-light);
    transition: color 0.2s ease;
}

.sidebar-sticky .toc-widget-list li a:hover {
    color: var(--sj-blue);
}

.sidebar-sticky .sidebar-widget-title {
    font-size: 1.35rem;
}

.sidebar-sticky .sidebar-widget ul li a {
    padding: 0.6rem 0;
}

.sidebar-sticky .sidebar-widget ul li:last-child a {
    border-bottom: none;
}

.sidebar-sticky .sidebar-widget ul li a:hover {
    padding-left: 5px;
}

/* --- Chat Greeting Bubble (NEW) --- */
.chat-greeting {
    display: none;
    /* Hidden initially */
    position: absolute;
    bottom: 75px;
    /* Above the button */
    right: 0;
    width: 280px;
    background: #fff;
    color: #333;
    padding: 1rem;
    border-radius: 1rem;
    border-bottom-right-radius: 0;
    /* Speech bubble effect */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    z-index: 1;
    /* Behind button slightly if overlapping */
    border: 1px solid #e0e0e0;
    animation: floatUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chat-greeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.chat-greeting h6 {
    font-weight: 700;
    color: var(--sj-blue);
    margin: 0;
    font-size: 0.95rem;
}

.chat-greeting p {
    margin: 0;
    color: #666;
    line-height: 1.4;
}

/* Page specific styles */
.policy-content h2 {
    color: var(--sj-dark-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.policy-content h3 {
    color: #333;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.policy-content p,
.policy-content ul,
.policy-content li {
    color: var(--sj-text-light);
    line-height: 1.7;
}

.policy-content ul {
    margin-bottom: 1rem;
}

.policy-last-updated {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* Callout box for crucial info */
.policy-callout {
    background-color: #f8f9fa;
    border-left: 4px solid var(--sj-blue);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
}