/* CSS Variables based on React globals.css */
:root {
    --primary-color: #012D61;
    --secondary-color: #0066cc;
    --accent-color: #e9ebef;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --background-color: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #012D61, #0066cc);
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

/* Custom animations to replace Framer Motion */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(1, 45, 97, 0.3);
    color: white;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: var(--transition);
}

.btn-outline-primary-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.logo-gradient {
    background: var(--gradient-primary);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-inner {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 2px;
}

/* Navigation Styles */
.nav-link-custom {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--primary-color) !important;
}

.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    display: none;
}

.mobile-menu.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero Image Container */
.hero-image-container {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    height: 500px;
    transition: transform 0.3s ease;
}

.hero-image-container:hover {
    transform: scale(1.02);
}

.hero-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-main-image {
    transform: scale(1.05);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(1, 45, 97, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

/* Hero Stats Overlays */
.hero-stat-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 140px;
}

.hero-stat-overlay:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-top-left {
    top: 1rem;
    left: 1rem;
}

.stat-top-right {
    top: 1rem;
    right: 1rem;
}

.stat-bottom-left {
    bottom: 1rem;
    left: 1rem;
}

.stat-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #012D61;
    line-height: 1.3;
    margin: 0;
}

/* Stats */
.stats-container {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
}

/* Card Styles */
.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

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

/* Service Card Specific Styles */
.service-gradient-bar {
    height: 8px;
    background: var(--gradient-primary);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.card-custom:hover .service-icon-wrapper {
    transform: scale(1.1);
}

.service-badges .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

/* Section Spacing */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Sections */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Tech Stack Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* FAQ Accordion */
.accordion-custom .accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.5rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-custom .accordion-body {
    padding: 1.5rem;
    color: var(--text-light);
}



.table-responsive {
    overflow-x: visible !important;
}



/* Footer */
.footer-section {
    background: linear-gradient(135deg, #012D61 0%, #014a8c 50%, #0165b3 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-link {
    color: rgba(173, 216, 230, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: white;
    text-decoration: none;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    /* Mobile header adjustments */
    .header-fixed .container {
        padding: 0 1rem;
    }
    
    /* Mobile service cards */
    .service-badges .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Mobile navigation */
    .nav-link-custom.active::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    /* Mobile button adjustments */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Mobile accordion */
    .accordion-custom .accordion-button {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .accordion-custom .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile footer */
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-section .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Large desktop optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Ultra-wide desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Agent Types Section Styles */
.agent-type-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.agent-type-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.agent-type-color-bar {
    height: 8px;
    width: 100%;
}

.agent-type-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.agent-type-icon i {
    font-size: 32px;
    color: white;
}

.agent-type-card:hover .agent-type-icon {
    transform: scale(1.1);
}

.agent-type-title {
    font-size: 1.25rem;
    color: #343a40;
    transition: color 0.3s ease;
    font-weight: 600;
}

.agent-type-card:hover .agent-type-title {
    color: #012D61;
}

.agent-type-card .card-body p {
    line-height: 1.6;
    color: #6c757d;
}

/* Why Choose Custom AI Agents - Comparison Table Styles */
.comparison-row {
    transition: all 0.3s ease;
    opacity: 1;
}

.comparison-row:hover {
    background-color: rgba(248, 249, 250, 0.8);
}

/* Mobile scroll hint */
.mobile-scroll-hint {
    position: relative;
    overflow: hidden;
}

.animated-arrow {
    animation: bounce-right 2s infinite;
}

@keyframes bounce-right {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(3px);
    }
}

/* Enhanced table responsive styling for horizontal scroll */
.mobile-table-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #012D61 #f1f1f1;
}

.mobile-table-scroll::-webkit-scrollbar {
    height: 8px;
}

.mobile-table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mobile-table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #012D61, #001f47);
    border-radius: 4px;
}

.mobile-table-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #001f47, #012D61);
}

/* Comparison table styling */
.comparison-table {
    min-width: 840px; /* Ensures horizontal scroll on mobile */
    white-space: nowrap;
}

.comparison-table td,
.comparison-table th {
    white-space: normal;
    word-wrap: break-word;
}

/* Sticky column styling */
.sticky-column {
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Table cell background styles - applied directly to td elements */
.excellent-cell-bg {
    color: #012D61;
    background-color: rgba(1, 45, 97, 0.05);
    border: 1px solid rgba(1, 45, 97, 0.1);
    transition: all 0.3s ease;
}

.average-cell-bg {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.05);
    border: 1px solid rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
}

.poor-cell-bg {
    color: #6c757d;
    background-color: rgba(248, 249, 250, 0.3);
    border: 1px solid rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
}

/* Prevent border flashing during AOS animation */
[data-aos^="fade"][data-aos*="left"] .excellent-cell-bg,
[data-aos^="fade"][data-aos*="left"] .average-cell-bg,
[data-aos^="fade"][data-aos*="left"] .poor-cell-bg {
    border: none;
}

[data-aos^="fade"][data-aos*="left"].aos-animate .excellent-cell-bg {
    border: 1px solid rgba(1, 45, 97, 0.1);
}

[data-aos^="fade"][data-aos*="left"].aos-animate .average-cell-bg {
    border: 1px solid rgba(108, 117, 125, 0.1);
}

[data-aos^="fade"][data-aos*="left"].aos-animate .poor-cell-bg {
    border: 1px solid rgba(108, 117, 125, 0.1);
}

/* Gap between cells using margin */
.comparison-row td.mx-1 {
    margin: 0 4px;
}

/* Mobile responsiveness for Why Choose section */
@media (max-width: 768px) {
    /* Why Choose Section Mobile Optimization */
    #why-choose .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    #why-choose .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Enhanced mobile table */
    .comparison-table {
        min-width: 700px;
    }
    
    .comparison-row td,
    .comparison-row th {
        padding: 12px 8px;
        vertical-align: middle;
    }
    
    .comparison-row .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .comparison-row .d-flex i {
        margin-bottom: 0;
        font-size: 1.1rem;
    }
    
    .comparison-row .small {
        font-size: 0.75rem !important;
        line-height: 1.3;
        font-weight: 500;
    }
    
    /* Sticky column mobile enhancement */
    .sticky-column {
        min-width: 120px !important;
        font-size: 0.9rem;
    }
    
    /* Card header mobile adjustment */
    #why-choose .card-header h4 {
        font-size: 1.1rem;
    }
    
    /* Mobile scroll hint styling */
    .mobile-scroll-hint .bg-light {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    }
    
    /* Enhanced mobile table layout */
    #why-choose .table-responsive {
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    /* Extra small screen optimizations for Why Choose section */
    #why-choose .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #why-choose .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Very mobile-friendly table styling */
    .comparison-table {
        min-width: 600px;
    }
    
    .comparison-row td,
    .comparison-row th {
        padding: 10px 6px;
    }
    
    .comparison-row .small {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }
    
    .comparison-row .d-flex i {
        font-size: 1rem;
    }
    
    /* Sticky column extra small enhancement */
    .sticky-column {
        min-width: 100px !important;
        font-size: 0.8rem;
    }
    
    /* Card adjustments for extra small screens */
    #why-choose .card {
        margin: 0 0.5rem;
    }
    
    #why-choose .card-header h4 {
        font-size: 1rem;
    }
    
    /* Enhanced mobile layout */
    #why-choose .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile scroll hint text size */
    .mobile-scroll-hint small {
        font-size: 0.75rem;
    }
}

/* Large screen optimization - hide mobile elements */
@media (min-width: 992px) {
    .mobile-scroll-hint {
        display: none !important;
    }
    
    .sticky-column {
        position: static !important;
        background: rgba(248, 249, 250, 0.5) !important;
        border-right: none !important;
        box-shadow: none !important;
    }
    
    .comparison-table {
        min-width: auto;
    }
}

/* Industries Section Styles */
.industry-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.industry-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.industry-color-bar {
    height: 8px;
    width: 100%;
}

.industry-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.industry-icon i {
    font-size: 32px;
    color: white;
}

.industry-card:hover .industry-icon {
    transform: scale(1.1);
}

.industry-title {
    font-size: 1rem;
    color: #343a40;
    transition: color 0.3s ease;
    font-weight: 600;
    line-height: 1.3;
}

.industry-card:hover .industry-title {
    color: #012D61;
}

.industry-badge {
    background-color: rgba(1, 45, 97, 0.04) !important;
    color: #012D61 !important;
    /* border: 1px solid rgba(1, 45, 97, 0.2); */
    font-size: 11px;
    padding: 6px 8px;
    text-align: left;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.2;
}

.industry-badge:hover {
    background-color: rgba(1, 45, 97, 0.1) !important;
    transform: translateY(-1px);
}

/* Compliance Section Styles */
.compliance-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.compliance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(1, 45, 97, 0.15) !important;
}

.compliance-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
}

.compliance-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.compliance-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Partner Reason Cards Styles */
.partner-reason-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.partner-reason-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(1, 45, 97, 0.15) !important;
}

.partner-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
}

.partner-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.partner-reason-card:hover .partner-icon {
    transform: scale(1.1);
}

.partner-badge {
    background-color: rgba(1, 45, 97, 0.1) !important;
    color: #012D61 !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
}

.partner-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.partner-reason-card:hover .partner-title {
    color: #012D61;
}