/* Global Styles */
:root {
    /* Neural Xpert Logo Colors */
    --electric-indigo: #004AAD;    /* Primary Blue */
    --neon-cyan: #00E0FF;         /* Accent Cyan */
    --graphite-black: #0D0D0D;    /* Dark Contrast */
    --pure-white: #FFFFFF;        /* Neutral White */
    
    /* Additional UI Colors */
    --light-bg: #F4F6F8;
    --text-black: #1A1A1A;
    --secondary-gray: #6C757D;
    --success-green: #00C48C;
    --primary-color: #0d6efd;
    --secondary-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --transition: all 0.3s ease;
    --dark-indigo: #001F4D;
    --electric-blue: #004AAD;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light-bg);
    line-height: 1.6;
    padding-top: 76px; /* Add padding for fixed navbar */
    overflow-x: hidden;
}

/* Navbar Styles - Force dark background */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.2rem 0;
    background: #001F4D !important;
    background-color: #001F4D !important;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: none;
}

/* Ensure navbar background is always visible */
.navbar,
.navbar.navbar-expand-lg,
.navbar.navbar-expand-lg.fixed-top,
#mainNavbar {
    background: #001F4D !important;
    background-color: #001F4D !important;
    border-bottom: none !important;
}

/* Override any Bootstrap default navbar styles */
.navbar.bg-light,
.navbar.bg-white,
.navbar.bg-transparent,
.navbar.bg-body-tertiary {
    background: #001F4D !important;
    background-color: #001F4D !important;
}

/* Additional specificity for navbar background */
nav.navbar,
nav.navbar.navbar-expand-lg,
nav.navbar.navbar-expand-lg.fixed-top {
    background: #001F4D !important;
    background-color: #001F4D !important;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.4);
    transition: all 0.4s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.4s ease;
}

.navbar-brand:hover {
    color: var(--pure-white) !important;
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.6);
}

.navbar-brand:hover::after {
    width: 100%;
}

/* Enhanced Nav Link Styles - Consistent for all menu items */
.navbar-nav .nav-link {
    color: var(--pure-white) !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-cyan);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover {
    color: var(--graphite-black) !important;
    transform: translateY(-2px);
    background: rgba(0, 224, 255, 0.1);
}

.navbar-nav .nav-link:hover::before {
    opacity: 0.1;
}

.navbar-nav .nav-link:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.navbar-nav .nav-link.active {
    color: var(--neon-cyan) !important;
    font-weight: 600;
    background: rgba(0, 224, 255, 0.1);
}

.navbar-nav .nav-link.active .nav-icon {
    opacity: 1;
    color: var(--neon-cyan);
}

/* Navigation Icons - Consistent for all nav items */
.nav-icon {
    display: none;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .nav-icon {
        display: inline-block;
    }
}

/* Dropdown Arrows - Consistent for all dropdowns */
.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Dropdown - Consistent for all dropdowns */
.mega-dropdown {
    width: 600px;
    padding: 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.dropdown-header {
    background: linear-gradient(135deg, var(--electric-indigo), var(--neon-cyan));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.dropdown-header h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.dropdown-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 1rem;
}

.service-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-black);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: rgba(0, 74, 173, 0.1);
    transform: translateY(-2px);
    color: var(--electric-indigo);
    text-decoration: none;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--electric-indigo), var(--neon-cyan));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.service-link:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

.service-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.service-info p {
    margin: 0.2rem 0 0 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Enhanced CTA Button - Consistent with other nav items */
.cta-button {
    position: relative;
    overflow: hidden;
    border-radius: 30px !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600;
    background: linear-gradient(135deg, var(--electric-indigo), var(--neon-cyan)) !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--pure-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.cta-button:hover {
    color: var(--pure-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.4);
}

.cta-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover .cta-ripple {
    width: 300px;
    height: 300px;
}

/* Progress Bar */
.navbar-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--electric-indigo));
    width: 0;
    transition: width 0.3s ease;
}

/* Scrolled Navbar Styles */
.navbar-scrolled {
    background: rgba(0, 31, 77, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .navbar-brand {
    font-size: 1.8rem;
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar-nav .nav-link {
        padding: 1rem 0 !important;
        margin: 0.3rem 0;
        text-align: center;
        justify-content: center;
        border-radius: 8px;
    }

    .nav-icon {
        display: inline-block;
        margin-right: 0.5rem;
    }

    .cta-button {
        margin: 1rem auto;
        width: 80%;
        text-align: center;
    }
    
    .mega-dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr;
    }

    .navbar-collapse {
        background: rgba(0, 31, 77, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

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

    .hamburger {
        width: 24px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--neon-cyan);
        position: absolute;
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger span:nth-child(3) {
        bottom: 0;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 50%;
    }
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    min-height: 450px;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
    color: var(--electric-indigo);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-indigo) 0%, var(--neon-cyan) 100%);
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-title p {
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section Styles */
.hero {
    position: relative;
    background: linear-gradient(120deg, #004aad 0%, #00e0ff 100%);
    color: var(--pure-white);
    border-radius: 2.5rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 224, 255, 0.10), 0 2px 8px 0 rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 4px 32px rgba(0,224,255,0.25), 0 1.5px 4px rgba(0,74,173,0.10);
    position: relative;
    z-index: 2;
}

.hero .lead, .hero .btn, .hero .floating-card span, .hero .floating-card i {
    color: var(--pure-white) !important;
    position: relative;
    z-index: 2;
}

.hero .floating-card {
    background: rgba(0, 31, 77, 0.85);
    color: var(--pure-white);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(0,224,255,0.10), 0 2px 8px 0 rgba(0,0,0,0.08);
    animation: float 3s ease-in-out infinite;
    transition: box-shadow 0.3s;
    z-index: 2;
}

.hero .hero-wave {
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--electric-indigo), var(--neon-cyan));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.hero-buttons .btn:hover::before {
    opacity: 1;
}

.hero-buttons .btn-outline-light {
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--neon-cyan);
    color: var(--graphite-black);
    border-color: var(--neon-cyan);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pure-white);
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 24px 0 rgba(0,224,255,0.10), 0 2px 8px 0 rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.floating-card i {
    color: var(--neon-cyan);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero, .hero::before {
        border-radius: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero, .hero::before {
        border-radius: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--electric-indigo);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Buttons */
.btn-primary {
    background: var(--electric-indigo);
    border-color: var(--electric-indigo);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.3);
}

.btn-outline-light:hover {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: var(--graphite-black);
}

/* Footer */
footer {
    background-color: #212529;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top-left-radius: 2.5rem;
    border-top-right-radius: 2.5rem;
    box-shadow: 0 -4px 32px 0 rgba(0,0,0,0.10);
    overflow: hidden;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #0d6efd;
}

/* Contact Form */
.form-control {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Icons */
.bi {
    color: var(--primary-color);
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--electric-indigo) 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Case Studies */
.case-study-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07), 0 1.5px 4px 0 rgba(0,0,0,0.03);
    border: 1px solid #f0f4fa;
    transition: box-shadow 0.3s cubic-bezier(.4,2,.3,1), transform 0.25s cubic-bezier(.4,2,.3,1);
    overflow: hidden;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 224, 255, 0.18), 0 2px 8px 0 rgba(0,0,0,0.08);
    transform: translateY(-8px) scale(1.025);
    border-color: #00e0ff;
}

.case-study-card .p-4 {
    padding: 2rem !important;
}

.case-study-card h5 {
    font-size: 1.15rem;
    color: #1a2340;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.case-study-card p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.case-study-card .btn-primary {
    background: linear-gradient(90deg, #00e0ff 0%, #3a7afe 100%);
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px 0 rgba(0,224,255,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.case-study-card .btn-primary:hover, .case-study-card .btn-primary:focus {
    background: linear-gradient(90deg, #3a7afe 0%, #00e0ff 100%);
    box-shadow: 0 4px 16px 0 rgba(0,224,255,0.18);
    transform: translateY(-2px) scale(1.03);
}

.btn-filter {
    background: #f0f4fa;
    color: #1a2340;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
}

.btn-filter.active, .btn-filter:hover, .btn-filter:focus {
    background: linear-gradient(90deg, #00e0ff 0%, #3a7afe 100%);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(0,224,255,0.10);
}

@media (max-width: 991px) {
    .case-study-card .p-4 {
        padding: 1.25rem !important;
    }
    .case-study-card {
        min-height: 260px;
    }
}

@media (max-width: 575px) {
    .case-study-card .p-4 {
        padding: 1rem !important;
    }
    .case-study-card {
        min-height: 200px;
    }
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, 
        var(--bs-body-bg) 25%, 
        var(--bs-primary-bg-subtle) 50%, 
        var(--bs-body-bg) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-results {
        margin: 1rem;
        padding: 1rem;
    }

    .search-result-item {
        padding: 1rem;
    }

    .search-result-item:hover {
        transform: translateX(5px);
    }
}

/* Case Study Detail Page */
.case-study-header {
    background: linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, var(--bs-body-bg) 100%);
    position: relative;
    overflow: hidden;
}

.case-study-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stat-card {
    background: var(--bs-body-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.content-section {
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2rem;
    width: 4px;
    height: 100%;
    background: var(--bs-primary);
    border-radius: 2px;
    opacity: 0.1;
}

.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary-dark);
}

.breadcrumb-item.active {
    color: var(--bs-body-color);
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: -2rem;
    font-size: 15rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

/* Related Case Studies */
.related-case-study {
    transition: all 0.3s ease;
}

.related-case-study:hover {
    transform: translateY(-5px);
}

.related-case-study .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.related-case-study .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .case-study-header {
        padding: 3rem 0;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .content-section::before {
        left: -1rem;
    }

    .tech-stack-container {
        justify-content: center;
    }
}

/* Quick View Overlay */
.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
        opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    }

.quick-view-overlay.show {
        opacity: 1;
    visibility: visible;
}

.quick-view-content {
    background: var(--bs-body-bg);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.quick-view-overlay.show .quick-view-content {
        transform: translateY(0);
    }

.close-quick-view {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bs-body-color);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-quick-view:hover {
    color: var(--bs-primary);
}

/* Comparison Features */
.compare-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-study-card:hover .compare-checkbox {
    opacity: 1;
}

.compare-button {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.compare-button:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.compare-button.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quick-view-content {
        width: 95%;
        padding: 1.5rem;
    }

    .compare-button {
        width: 90%;
        text-align: center;
    }
}

/* Advanced Search and Filters */
.advanced-filters {
    background: var(--bs-body-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filter-checkbox input {
    margin-right: 0.5rem;
}

/* Search Result Enhancements */
.search-result-item {
    position: relative;
    overflow: hidden;
}

.search-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bs-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-item:hover::before {
    opacity: 1;
}

.search-result-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-item:hover .search-result-actions {
    opacity: 1;
}

@media (max-width: 768px) {
    .search-result-actions {
        opacity: 1;
    }
}

/* Case Study Hero Image */
.hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    pointer-events: none;
}

.case-study-header {
    position: relative;
    background: var(--bs-body-bg);
}

.case-study-header .container {
    position: relative;
    z-index: 1;
}

.case-study-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.case-study-header .breadcrumb-item a {
    color: var(--bs-body-color);
    text-decoration: none;
}

.case-study-header .breadcrumb-item.active {
    color: var(--bs-primary);
}

@media (max-width: 768px) {
    .hero-image {
        height: 300px;
    }
}

/* --- Why Choose Neural Xpert (Advantage) Section --- */
.nx-advantage-section {
    position: relative;
    min-height: 420px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #1a2340;
    overflow: hidden;
}
.nx-slider-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0.5px) brightness(0.95);
    border-radius: 2.5rem;
}
.nx-slider-overlay {
    background: linear-gradient(90deg, rgba(30,34,64,0.18) 0%, rgba(0,224,255,0.10) 100%);
    pointer-events: none;
    border-radius: 2.5rem;
}
.nx-advantage-section .container {
    position: relative;
    z-index: 2;
}
.nx-advantage-section h2, .nx-advantage-section h4 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(30,34,64,0.12);
}
.nx-advantage-section h4 {
    color: #e0e6f7;
    font-weight: 500;
}
.nx-advantage-box {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 224, 255, 0.10), 0 2px 8px 0 rgba(0,0,0,0.08);
    padding: 2rem;
    max-width: 480px;
    margin-top: 1rem;
}
.nx-advantage-box h5 {
    color: #1a2340;
    font-weight: 700;
}
.nx-advantage-box ul {
    padding-left: 0;
}
.nx-advantage-box li {
    font-size: 1.08rem;
    color: #3a466e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}
.nx-advantage-box i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}
@media (max-width: 991px) {
    .nx-advantage-section {
        min-height: 320px;
    }
    .nx-advantage-box {
        padding: 1.25rem;
        max-width: 100%;
    }
    .nx-slider-bg img,
    .nx-slider-overlay {
        border-radius: 1.5rem;
    }
}
@media (max-width: 575px) {
    .nx-advantage-section {
        min-height: 220px;
    }
    .nx-advantage-box {
        padding: 1rem;
    }
    .nx-advantage-section h2 {
        font-size: 2rem;
    }
    .nx-advantage-section h4 {
        font-size: 1.1rem;
    }
    .nx-slider-bg img,
    .nx-slider-overlay {
        border-radius: 1rem;
    }
}

.cta-section {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    margin: 3rem 0 0 0;
    box-shadow: 0 8px 32px 0 rgba(0, 224, 255, 0.10), 0 2px 8px 0 rgba(0,0,0,0.08);
}
.cta-section h2 {
    color: #fff;
    font-size: 2.2rem;
}
.cta-section p {
    color: #e0f7fa;
    font-size: 1.2rem;
}
.cta-section .btn-primary {
    background: linear-gradient(90deg, #00e0ff 0%, #3a7afe 100%);
    color: #fff;
    border: none;
    border-radius: 2.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.85rem 2.5rem;
    box-shadow: 0 4px 16px 0 rgba(0,224,255,0.12);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s cubic-bezier(.4,2,.3,1);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.cta-section .btn-primary::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #3a7afe 0%, #00e0ff 100%);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 2.5rem;
    z-index: 0;
}
.cta-section .btn-primary:hover, .cta-section .btn-primary:focus {
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(0,224,255,0.18);
    transform: translateY(-3px) scale(1.04);
}
.cta-section .btn-primary:hover::after, .cta-section .btn-primary:focus::after {
    opacity: 1;
}
@media (max-width: 575px) {
    .cta-section {
        border-radius: 1rem;
        padding: 2rem 0;
    }
    .cta-section h2 {
        font-size: 1.4rem;
    }
}

.cta-bg-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.cta-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2.5rem;
    filter: brightness(0.92);
}

@media (max-width: 991px) {
    .cta-bg-img img, .cta-section {
        border-radius: 1.5rem;
    }
}
@media (max-width: 575px) {
    .cta-bg-img img, .cta-section {
        border-radius: 1rem;
    }
}

.hero-animated-bg {
    animation: heroBgPulse 8s ease-in-out infinite alternate;
}
@keyframes heroBgPulse {
    0% { filter: brightness(1) blur(0px); }
    100% { filter: brightness(1.08) blur(2px); }
}

/* --- Service Card Hover Reveal --- */
.service-card {
    position: relative;
    overflow: visible;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07), 0 1.5px 4px 0 rgba(0,0,0,0.03);
    border: 2px solid transparent;
    transition: all 0.35s cubic-bezier(.4,2,.3,1);
    min-height: 320px;
    z-index: 1;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--electric-indigo), var(--neon-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card .service-icon {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--electric-indigo), var(--neon-cyan));
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px 0 rgba(0,224,255,0.12);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
    border: 4px solid #fff;
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 8px 32px 0 rgba(0,224,255,0.18), 0 2px 8px 0 rgba(0,0,0,0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    box-shadow: 0 8px 32px 0 rgba(0,224,255,0.18);
    transform: translateX(-50%) scale(1.08) rotate(360deg);
}

.service-card .service-details {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: all 0.4s cubic-bezier(.4,2,.3,1);
    overflow: hidden;
}

.service-card:hover .service-details {
    opacity: 1;
    max-height: 400px;
    pointer-events: auto;
    transform: translateY(0);
}

.service-card .card-title {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--electric-indigo);
    transition: all 0.3s ease;
}

.service-card:hover .card-title {
    color: var(--neon-cyan);
    transform: scale(1.05);
}

.service-card .service-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.service-card .service-details ul li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}

.service-card:hover .service-details ul li {
    transform: translateX(8px);
}

.service-card:hover .service-details ul li i {
    transform: translateY(-50%) scale(1.2);
}

/* Service Card Animation */
@keyframes serviceCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.service-card {
    animation: serviceCardFloat 3s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .service-card {
        min-height: 260px;
    }
    .service-card .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        top: -24px;
    }
}

@media (max-width: 575px) {
    .service-card {
        min-height: 200px;
    }
    .service-card .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -16px;
    }
}

/* End Service Card Hover Reveal */

/* Industries Section Styles */
.industries-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.industries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.industry-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.industry-card:hover::before {
    transform: scaleX(1);
}

.industry-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.industry-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
}

.industry-card:hover .industry-icon {
    transform: rotateY(180deg);
}

.industry-card:hover .industry-icon i {
    transform: rotateY(-180deg);
}

.industry-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    transition: all 0.4s ease;
}

.industry-card:hover h3 {
    color: var(--primary-color);
}

.industry-details {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    height: 0;
}

.industry-card:hover .industry-details {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

.industry-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-details li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.industry-details li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.industry-card:hover .industry-details li {
    transform: translateX(10px);
}

.industry-card:hover .industry-details li i {
    transform: scale(1.2);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .industry-card {
        padding: 1.5rem;
    }

    .industry-icon {
        width: 60px;
        height: 60px;
    }

    .industry-icon i {
        font-size: 1.5rem;
    }

    .industry-card h3 {
        font-size: 1.25rem;
    }

    .industry-details {
        opacity: 1;
        transform: none;
        height: auto;
    }

    .industry-card:hover {
        transform: none;
    }

    .industry-card:hover .industry-details li {
        transform: none;
    }
}

/* Animation for industry cards */
@keyframes floatIndustry {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.industry-card {
    animation: floatIndustry 6s ease-in-out infinite;
}

.industry-card:nth-child(2n) {
    animation-delay: 1s;
}

.industry-card:nth-child(3n) {
    animation-delay: 2s;
}

/* Hover state for mobile */
@media (hover: none) {
    .industry-card {
        transform: none !important;
    }
    
    .industry-card:active {
        transform: scale(0.98) !important;
    }
    
    .industry-details {
        opacity: 1;
        transform: none;
        height: auto;
    }
}

@media (max-width: 991.98px) {
    footer {
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    footer {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
    }
} 