/* ===== AI Consulting Website Styles ===== */

/* Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    --primary-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --heading-font: 'Poppins', 'Inter', sans-serif;
    
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-cta {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
    color: var(--dark-color);
    font-weight: 600;
    box-shadow: var(--box-shadow);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Card Styles */
.card, .bg-white {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover, .bg-white:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

/* Service Cards */
.service-card {
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Statistics/Metrics */
.stat-card h3, .metric-card h3 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--warning-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonials */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--warning-color);
}

.stars i {
    color: var(--warning-color);
    margin-right: 0.2rem;
}

/* Trust Indicators */
.trust-badge {
    transition: var(--transition);
    opacity: 0.7;
}

.trust-badge:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
    color: #ffffff !important;
}

/* Footer text - ensure all text is white for readability */
footer,
footer p,
footer .text-light-emphasis,
footer small,
footer h5,
footer h6,
footer li {
    color: #ffffff !important;
}

/* Footer links - white with hover effect */
footer a {
    color: #ffffff !important;
    transition: var(--transition);
    opacity: 0.9;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
    opacity: 1;
}

/* Footer horizontal line */
footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 4rem 0;
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

/* Industry Cards */
.industry-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.industry-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.1);
}

.industry-card i {
    transition: var(--transition);
}

.industry-card:hover i {
    transform: scale(1.2);
}

/* Team Cards */
.team-card {
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    transform: scale(1.1);
}

/* Case Study Cards */
.case-study-card {
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.result-metric {
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.result-metric:hover {
    background: white;
    box-shadow: var(--box-shadow);
}

/* Contact Form */
.contact-form-card {
    border-left: 4px solid var(--primary-color);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Newsletter Form */
.newsletter-form {
    position: relative;
}

.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Badges and Tags */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

/* Accordion Styles */
.accordion-item {
    border: none;
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-card h3, .metric-card h3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 50vh;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .cta-section, .newsletter-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
button:focus,
.btn:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .card, .bg-white {
        border: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements * {
        animation: none !important;
    }
}
