/* 
 * Avira Market Intelligence - Custom Styles
 * A professional B2B marketing website
 */

/* Base Styles */
:root {
    --primary-color: #dc2626;      /* Bright red */
    --secondary-color: #4b5563;    /* Slate gray */
    --accent-color: #f97316;       /* Orange */
    --light-color: #f8fafc;        /* Light gray */
    --dark-color: #1f2937;         /* Dark gray */
    --text-color: #374151;         /* Gray text */
    --border-radius: 8px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #b91c1c;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.section-header {
    margin-bottom: 3rem;
}

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.dropdown-item:active {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.hero-section h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section img {
    max-width: 100%;
    height: auto;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-features li i {
    color: var(--primary-color);
}

/* Why Choose Us Section */
.why-us-section {
    padding: 5rem 0;
}

.feature-icon {
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonial-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    padding: 4rem 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-links a, .footer-contact {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* About Page */
.team-member-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
}

.team-member-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.page-header {
    background-color: var(--primary-color);
    padding: 4rem 0;
}

.value-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    color: var(--primary-color);
}

.stat-item {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: white;
}

/* Services Page */
.service-detail {
    padding: 5rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
}

.methodology-card {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.methodology-card:hover {
    transform: translateY(-10px);
}

.methodology-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    margin: 0 auto;
}

/* Case Studies Page */
.case-study-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-10px);
}

.case-study-badge {
    margin-bottom: 1rem;
}

.case-study-results {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.case-study-results i {
    color: var(--primary-color);
}

.industry-item {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.industry-item:hover {
    transform: translateY(-10px);
}

.industry-icon {
    color: var(--primary-color);
}

/* Contact Page */
.contact-form {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.map-container {
    overflow: hidden;
    padding-bottom: 450px;
    position: relative;
    height: 0;
}

.map-container iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.office-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.office-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    color: var(--primary-color);
}

.contact-item i {
    color: var(--primary-color);
}

/* Blog/Insights Page */
.featured-article {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-article-img {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.blog-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.article-title a {
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta i {
    color: var(--primary-color);
}

.sidebar-widget {
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.widget-title {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.popular-post {
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-card, .testimonial-card, .team-member-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .social-links {
        margin-top: 1rem;
    }
    
    .service-card, .value-card, .methodology-card, .office-card {
        margin-bottom: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Custom Utilities */
.bg-light-gradient {
    background: linear-gradient(to right, #fef2f2, #fee2e2);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Result Items */
.result-item i {
    color: var(--primary-color);
}

/* Check Icons */
.fa-check-circle {
    color: var(--primary-color);
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-link:hover {
    color: #b91c1c;
}

/* Force Bootstrap primary classes to use the new red */
.text-primary,
a.text-primary,
i.text-primary,
span.text-primary,
h1.text-primary,
h2.text-primary,
h3.text-primary,
h4.text-primary,
h5.text-primary,
h6.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary,
.badge.bg-primary,
.btn-primary,
.btn-outline-primary,
.border-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}
a.bg-primary:hover,
a.text-primary:hover,
.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}