/* Quantix Website Styles - Wazuh-Inspired Dark Theme */

/*
 * FONT COLOR STANDARD
 * ==================
 * 
 * Rule: Background color determines font color
 * 
 * Dark Backgrounds (#0f172a, #1a1a2e, #0a0e1a, dark gradients):
 *   - Primary text: #ffffff (white)
 *   - Secondary text: #94a3b8 (light gray)
 * 
 * White Backgrounds (#ffffff, white cards):
 *   - Primary text: #1e293b (dark blue-gray)
 *   - Secondary text: #64748b (medium gray)
 * 
 * Forms: Always use dark theme (dark container, white text)
 * Buttons: Use their own colors (inherit from button styles)
 */

:root {
    --primary-bg: #0f172a;
    --secondary-bg: #1a1a2e;
    --dark-bg: #0a0e1a;
    --accent-color: #ea580c;
    --accent-hover: #dc2626;
    --card-bg: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Font Color Standard */
    --text-on-dark: #ffffff;           /* White text for dark backgrounds */
    --text-on-dark-secondary: #94a3b8; /* Light gray for secondary text on dark */
    --text-on-light: #1e293b;          /* Dark text for white backgrounds */
    --text-on-light-secondary: #64748b; /* Medium gray for secondary text on white */
    
    /* Legacy variables - now reference the standard */
    --text-primary: var(--text-on-dark);      /* Default: white for dark theme */
    --text-secondary: var(--text-on-dark-secondary);
    --card-text: var(--text-on-light);       /* Dark for white cards */
    
    /* Form Standardization Variables */
    --form-bg: rgba(26, 26, 46, 0.95); /* Dark background for form container */
    --form-input-bg: rgba(255, 255, 255, 0.1); /* Semi-transparent white for inputs */
    --form-input-focus-bg: rgba(255, 255, 255, 0.15);
    --form-label-color: var(--text-on-dark); /* White labels */
    --form-text-color: var(--text-on-dark); /* White text in inputs */
    --form-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    transform: none !important;
    /* Ensure no transform blocks fixed positioning */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark);  /* White text on dark background */
    background-color: var(--primary-bg);
    overflow-x: hidden;
    transform: none !important;
    /* Ensure no transform blocks fixed positioning */
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Modal animations - consolidated from inline styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Ensure horizontal navbar on desktop - Hypothesis A, C, D */
@media (min-width: 992px) {
    /* Force navbar to be horizontal on desktop */
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
        align-items: center !important;
    }
    
    .navbar-nav {
        flex-direction: row !important;
        margin-bottom: 0 !important;
        display: flex !important;
    }
    
    .navbar-nav .nav-link {
        border-bottom: none !important;
        padding: 0.5rem 1rem !important;
    }
    
    .navbar .d-flex.gap-2 {
        flex-direction: row !important;
        width: auto !important;
        margin-left: auto !important;
    }
    
    /* Hide hamburger menu on desktop */
    .navbar-toggler {
        display: none !important;
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-on-dark-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--text-on-dark) !important;
}

/* Dropdown Menus */
.navbar-dark .dropdown-menu {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.navbar-dark .dropdown-item {
    color: var(--text-on-dark-secondary);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar-dark .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007C82;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.logo-text:hover {
    color: #0d9488;
}

.logo-container {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
    letter-spacing: -0.5px;
}

/* Hero Section - Dark Background, Light Fonts */
.hero-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    padding: 150px 0 80px 0;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section,
.hero-section * {
    color: var(--text-on-dark) !important;
}

.hero-section .text-secondary,
.hero-section .text-light,
.hero-section .text-white-50,
.bg-dark .text-white-50 {
    color: var(--text-on-dark-secondary) !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-on-dark-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Buttons */
.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    color: var(--text-on-dark); /* White text on colored button */
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: var(--text-on-dark);
}

.btn-outline-light {
    border: 2px solid var(--text-on-dark-secondary);
    color: var(--text-on-dark-secondary);
    background: transparent;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    border-color: var(--text-on-dark);
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.1);
}

.btn-install-quantix {
    background: #fbbf24;
    border: none;
    color: #0f172a;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-install-quantix:hover {
    background: #f59e0b;
    color: #0f172a;
}

.btn-portal {
    background: #ffffff;
    border: none;
    color: #0f172a;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-portal:hover {
    background: #e5e7eb;
    color: #0f172a;
}

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

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

/* Dark Backgrounds - Light Fonts */
.bg-dark,
.bg-dark * {
    color: var(--text-on-dark) !important;
}

.bg-dark .text-secondary,
.bg-dark .text-muted {
    color: var(--text-on-dark-secondary) !important;
}

/* Exceptions for specific elements that should remain dark (like buttons with colored backgrounds) */
.bg-dark .btn-primary-custom,
.bg-dark .btn-install-quantix,
.bg-dark .btn-portal,
.bg-dark .btn-newsletter,
.bg-dark button[style*="background"],
.bg-dark a[style*="background"] {
    color: inherit !important;
}

/* Ensure headings in dark sections are light */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: var(--text-on-dark) !important;
}

/* Ensure paragraphs in dark sections are light */
.bg-dark p {
    color: var(--text-on-dark) !important;
}

.bg-dark p.text-secondary,
.bg-dark p.text-light {
    color: var(--text-on-dark-secondary) !important;
}

/* Ensure list items in dark sections are light */
.bg-dark ul,
.bg-dark ol,
.bg-dark li {
    color: var(--text-on-dark) !important;
}

/* Ensure lead text in dark sections is light */
.bg-dark .lead {
    color: var(--text-on-dark) !important;
}

.bg-dark .lead.text-secondary,
.bg-dark .lead.text-light {
    color: var(--text-on-dark-secondary) !important;
}

/* Override text-muted-lead in dark sections to use white text */
.bg-dark .text-muted-lead,
.bg-dark .lead.text-muted-lead {
    color: var(--text-on-dark) !important;
}

.bg-light {
    background-color: #ffffff !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-on-dark); /* Default for dark backgrounds */
    margin-bottom: 1rem;
    text-align: center;
}

.bg-light .section-title {
    color: var(--text-on-light) !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-on-dark-secondary); /* Default for dark backgrounds */
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light .section-subtitle {
    color: var(--text-on-light-secondary) !important;
}

/* White Backgrounds - Dark Fonts */
.bg-light {
    color: var(--text-on-light) !important;
}

/* Override for all elements in bg-light, but allow inline styles to override */
.bg-light *:not([style*="color"]) {
    color: var(--text-on-light) !important;
}

.bg-light .text-secondary,
.bg-light .text-muted,
.bg-light .text-white-50 {
    color: var(--text-on-light-secondary) !important;
}

/* Make text-muted-small darker (primary text color) in white sections for better readability */
.bg-light .text-muted-small,
.bg-light p.text-muted-small,
.bg-light .row .text-muted-small,
.bg-light .col-12 .text-muted-small,
.bg-light .row.g-4 .text-muted-small,
.bg-light .row.g-4 .col-12 .text-muted-small,
.bg-light .row.g-4 .col-12 p.text-muted-small,
.bg-light .row.g-4 .col-12 p.lead.text-muted-small {
    color: #1e293b !important;
    visibility: visible !important;
    display: block !important;
}

/* Exceptions for specific elements that should remain white (like buttons with colored backgrounds) */
.bg-light .btn-primary-custom,
.bg-light .btn-install-quantix,
.bg-light .btn-portal,
.bg-light .btn-newsletter,
.bg-light button[style*="background"],
.bg-light a[style*="background"] {
    color: inherit !important;
}

/* Fix text-white and text-light classes in white sections */
.bg-light .text-white,
.bg-light .text-light {
    color: var(--text-on-light) !important;
}

/* Fix lead text in white sections */
.bg-light .lead {
    color: var(--text-on-light) !important;
}

/* Ensure lead.text-muted-small in white sections uses darker text */
.bg-light .lead.text-muted-small,
.bg-light p.lead.text-muted-small,
.bg-light .row .lead.text-muted-small,
.bg-light .col-12 .lead.text-muted-small,
.bg-light .row.g-4 .lead.text-muted-small,
.bg-light .row.g-4 .col-12 .lead.text-muted-small,
.bg-light .row.g-4 .col-12 p.lead.text-muted-small {
    color: #1e293b !important;
    visibility: visible !important;
    display: block !important;
}

/* Fix paragraph text in white sections */
.bg-light p,
.bg-light p.lead,
.bg-light p.text-muted-small,
.bg-light .row p,
.bg-light .col-12 p,
.bg-light .service-content-text {
    color: #1e293b !important;
    visibility: visible !important;
    display: block !important;
}

/* Fix headings in white sections */
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--text-on-light) !important;
}

/* Fix list items in white sections */
.bg-light ul,
.bg-light ol,
.bg-light li {
    color: var(--text-on-light) !important;
}

/* Capability Cards - White Card Design (Wazuh Style) */
.capability-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.capability-card:hover {
    background: #f8f9fa;
}

/* White Cards - Dark Fonts */
.capability-card,
.capability-card * {
    color: var(--text-on-light) !important;
}

/* Override text-muted-small in capability cards to use darker text */
.capability-card .text-muted-small {
    color: var(--text-on-light) !important;
}

/* Capability Cards in Dark Sections - Match learn-more-card style exactly */
.bg-dark .capability-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
}

.bg-dark .capability-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    transform: none !important;
}

.bg-dark .capability-card,
.bg-dark .capability-card * {
    color: var(--text-on-dark) !important;
}

.bg-dark .capability-card .text-muted-small {
    color: var(--text-on-dark-secondary) !important;
}

.bg-dark .capability-title {
    color: var(--text-on-dark) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

/* Ensure Learn more links in dark capability cards are visible */
.bg-dark .capability-card a {
    color: #14b8a6 !important;
    transition: color 0.3s ease;
}

.bg-dark .capability-card a:hover {
    color: var(--accent-color) !important;
}

.capability-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-on-light);
    margin-bottom: 1rem;
}

.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-list li {
    color: var(--text-on-light);
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
}

.capability-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Feature Cards - White Background, Dark Fonts */
.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card,
.feature-card * {
    color: var(--text-on-light) !important;
}

.feature-card:hover {
    background: #f8f9fa;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-on-dark); /* White icon on colored background */
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-on-light);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-on-light-secondary);
    line-height: 1.6;
}

.feature-illustration {
    text-align: center;
    opacity: 0.2;
}

/* Contact Form - Standardized Dark Theme */
.contact-form {
    background: var(--form-bg) !important; /* Always dark, even in white sections */
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--form-border);
}

/* Forms always use dark theme, regardless of section background */
.contact-form,
.contact-form * {
    color: var(--form-text-color) !important;
}

/* Exception: Buttons keep their colors */
.contact-form .btn-primary-custom,
.contact-form .btn-install-quantix,
.contact-form .btn-portal {
    color: inherit !important;
}

.form-control {
    background: var(--form-input-bg);
    border: 1px solid var(--form-border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--form-text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--form-input-focus-bg);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
    color: var(--form-text-color);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* Fix select dropdown - main select element */
select.form-control {
    background: var(--form-input-bg) !important;
    color: var(--form-text-color) !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px; /* Space for custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 12px;
}

select.form-control:focus {
    background: var(--form-input-focus-bg) !important;
    border-color: var(--accent-color) !important;
    color: var(--form-text-color) !important;
}

/* Fix dropdown options list - ensure dark background */
select.form-control option {
    background: var(--secondary-bg) !important; /* Dark background: #1a1a2e */
    color: var(--text-primary) !important; /* White text: #ffffff */
    padding: 12px 15px;
}

/* Selected option styling */
select.form-control option:checked {
    background: var(--accent-color) !important; /* Accent color: #ea580c */
    color: #ffffff !important;
}

/* Hover state for options (when dropdown is open) */
select.form-control option:hover,
select.form-control option:focus {
    background: rgba(234, 88, 12, 0.3) !important; /* Light accent color */
    color: #ffffff !important;
}

/* First option (placeholder) styling */
select.form-control option[value=""] {
    color: var(--text-secondary) !important; /* Gray text: #94a3b8 */
    background: var(--secondary-bg) !important;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Ensure form labels are always white for high contrast */
.contact-form .form-label,
.newsletter-form .form-label {
    color: var(--form-label-color) !important;
}

/* Override any section background color rules for form labels */
.bg-light .contact-form .form-label,
.bg-light .newsletter-form .form-label {
    color: var(--form-label-color) !important;
}

/* Footer - Dark Background, Light Fonts */
.footer {
    background: var(--dark-bg);
    color: var(--text-on-dark-secondary);
    padding: 60px 0 30px;
}

.footer,
.footer * {
    color: var(--text-on-dark-secondary) !important;
}

.footer-link {
    color: var(--text-on-dark-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--text-on-dark);
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Statistics Section */
.stats-section {
    background: var(--primary-bg);
}

/* Stats Section - Dark Background, Light Fonts */
.stats-section,
.stats-section * {
    color: var(--text-on-dark) !important;
}

.stats-section .text-secondary,
.stats-section .text-light {
    color: var(--text-on-dark-secondary) !important;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-on-dark-secondary);
    font-weight: 500;
}

/* Testimonials Section */
.testimonial-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: #f8f9fa;
}

/* Testimonial Cards - White Background, Dark Fonts */
.testimonial-card,
.testimonial-card * {
    color: var(--text-on-light) !important;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-on-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
}

.testimonial-author {
    color: var(--text-on-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.testimonial-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Learn More Section */
.learn-more-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.learn-more-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    width: 100%;
    background: #0a0e1a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-on-dark);
    z-index: 10050;
    padding: 1.25rem 1.5rem;
    display: block;
    box-sizing: border-box;
}

.cookie-consent-banner--fixed {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    /* Ensure it's positioned relative to viewport, not document */
}

.cookie-consent-banner[hidden] {
    display: none !important;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-on-dark);
}

.cookie-consent-text {
    margin: 0;
    color: var(--text-on-dark-secondary);
    max-width: 520px;
}

.cookie-consent-link {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-link:hover {
    color: #0d9488;
}

.cookie-consent-preferences {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-on-dark);
}

.cookie-consent-option input {
    accent-color: #14b8a6;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-consent-actions .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-actions,
    .cookie-consent-preferences {
        width: 100%;
    }

    .cookie-consent-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.learn-more-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-on-dark); /* Default for dark backgrounds */
    margin-bottom: 1rem;
}

/* Fix learn-more-card text in dark sections - ensure it's always light */
.bg-dark .learn-more-title,
.stats-section .learn-more-title,
.hero-section .learn-more-title {
    color: var(--text-on-dark) !important;
}

.learn-more-description {
    color: var(--text-on-dark-secondary); /* Default for dark backgrounds */
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 0;
}

/* Fix learn-more-description text in dark sections - ensure it's always light */
.bg-dark .learn-more-description,
.stats-section .learn-more-description,
.hero-section .learn-more-description {
    color: var(--text-on-dark-secondary) !important;
}

/* Learn-more cards in white background sections need light background and dark text */
.bg-light .learn-more-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.bg-light .learn-more-card:hover {
    background: #f8f9fa !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.bg-light .learn-more-card,
.bg-light .learn-more-card * {
    color: var(--text-on-light) !important;
}

.bg-light .learn-more-title {
    color: var(--text-on-light) !important;
}

.bg-light .learn-more-description {
    color: #1e293b !important;
}

.service-icon {
    flex-shrink: 0;
}

/* Newsletter Section */
.newsletter-section {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.newsletter-form .input-group {
    margin-bottom: 0.5rem;
}

.newsletter-input {
    background: var(--form-input-bg) !important;
    border: 1px solid var(--form-border) !important;
    color: var(--form-text-color) !important;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-input:focus {
    background: var(--form-input-focus-bg) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
    color: var(--form-text-color) !important;
}

/* Newsletter form text always white */
.newsletter-form,
.newsletter-form * {
    color: var(--form-text-color) !important;
}

/* Exception: Newsletter button keeps its color */
.newsletter-form .btn-newsletter {
    color: inherit !important;
}

.btn-newsletter {
    background: var(--accent-color);
    border: none;
    color: var(--text-primary);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
}

.newsletter-disclaimer {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--text-primary);
}

/* Scroll Offset */
#platform,
#features,
#capabilities,
#contact,
#testimonials,
#learn-more,
#community,
#cloud,
#cti,
#documentation,
#blog {
    scroll-margin-top: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.6;
    }
    
    .hero-section {
        padding: 100px 0 40px 0;
        min-height: auto;
    }
    
    .section-title {
        font-size: 1.9rem !important;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .feature-illustration {
        display: none;
    }
    
    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 .btn,
    .d-flex.gap-2 .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .d-flex.gap-2 {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
        gap: 0.75rem !important;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    .stat-number {
        font-size: 2.2rem !important;
    }
    
    .testimonial-card,
    .learn-more-card,
    .capability-card,
    .feature-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .capability-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Ensure dark capability cards stay dark on tablet */
    .bg-dark .capability-card {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: none !important;
    }
    
    .capability-title,
    .feature-title {
        font-size: 1.1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
        gap: 1.25rem;
    }
    
    .newsletter-section {
        padding: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: 8px 8px 0 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .input-group .btn {
        border-radius: 0 0 8px 8px !important;
        width: 100%;
    }
    
    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-3,
    .footer .col-lg-2,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .footer .row.align-items-center {
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
    
    /* Form improvements */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
        min-height: 48px; /* Better touch target */
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Card improvements */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Statistics */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-section {
        padding: 90px 0 30px 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .capability-card,
    .feature-card,
    .testimonial-card,
    .learn-more-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    /* Ensure dark capability cards stay dark on mobile */
    .bg-dark .capability-card {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: none !important;
    }
    
    /* Ensure learn-more-card backgrounds are correct in light sections at mobile */
    .bg-light .learn-more-card {
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .capability-title,
    .feature-title {
        font-size: 1rem;
    }
    
    .capability-list li,
    .feature-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .navbar-collapse {
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        font-size: 1.25rem;
    }
    
    /* Utility classes for common inline styles */
    .hero-section-with-padding {
        padding-top: 120px !important;
    }
    
    .hero-section-with-padding-bottom {
        padding-bottom: 80px !important;
    }
    
    .text-card-color {
        color: var(--card-text) !important;
    }
    
    .text-muted-lead {
        color: #64748b !important;
        margin-bottom: 2rem;
    }
    
    /* Ensure text-muted-lead is white in dark sections */
    .bg-dark .text-muted-lead,
    .bg-dark .lead.text-muted-lead {
        color: var(--text-on-dark) !important;
    }
    
    .text-muted-small {
        color: #64748b !important;
    }
    
    /* Override text-muted-small in white sections to use dark text */
    .bg-light .text-muted-small,
    .bg-light p.text-muted-small,
    .bg-light .lead.text-muted-small,
    .bg-light div .text-muted-small,
    .bg-light .row .text-muted-small {
        color: #1e293b !important;
    }
    
    /* Override lead.text-muted-small in white sections */
    .bg-light .lead.text-muted-small,
    .bg-light p.lead.text-muted-small {
        color: #1e293b !important;
    }
    
    /* Ensure all paragraphs in white sections are dark */
    .bg-light p,
    .bg-light .lead {
        color: #1e293b !important;
    }
    
    .max-width-800 {
        max-width: 800px;
    }
    
    .max-width-600 {
        max-width: 600px;
    }
    
    /* Pricing card specific styles */
    .pricing-card {
        height: 100%;
    }
    
    .pricing-feature {
        color: #64748b;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .pricing-label {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--card-text);
    }
    
    .pricing-price {
        font-size: 2rem;
        font-weight: 700;
        color: #14b8a6;
        margin: 0.5rem 0;
    }
    
    .pricing-small-text {
        font-size: 0.85rem;
    }
    
    /* Compliance icon container */
    .compliance-icon-container {
        width: 150px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
    }
    
    .compliance-icon {
        font-size: 3rem;
        color: #14b8a6;
    }
    
    .compliance-label {
        color: #94a3b8;
        font-weight: 600;
    }
    
    .compliance-link {
        color: #14b8a6;
        font-size: 0.9rem;
        text-decoration: none;
    }
    
    .compliance-link:hover {
        text-decoration: underline;
    }
    
    /* Contact info icon styles */
    .contact-icon {
        font-size: 2rem;
        color: var(--accent-color);
    }
    
    /* Success modal styles */
    .success-icon-large {
        color: #14b8a6;
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .success-title {
        color: #ffffff;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .success-text {
        color: #94a3b8;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .success-link {
        color: #14b8a6;
    }
    
    /* FAQ hero subtitle */
    .hero-subtitle-centered {
        max-width: 800px;
        margin: 0 auto;
    }
    
    /* CTI placeholder icons */
    .placeholder-icon {
        font-size: 3rem;
        opacity: 0.3;
        margin-top: 1rem;
    }
    
    /* CTI loading/error states */
    .cti-loading-icon,
    .cti-error-icon {
        font-size: 2rem;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }
    
    .cti-search-icon {
        font-size: 2rem;
        color: var(--text-secondary);
        margin-bottom: 1rem;
    }
    
    .pagination-container-flex {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .newsletter-section {
        padding: 1.25rem;
    }
    
    .newsletter-disclaimer {
        font-size: 0.8rem;
    }
    
    .service-icon {
        font-size: 1.5rem !important;
    }
    
    .learn-more-title {
        font-size: 1.2rem;
    }
    
    .learn-more-description {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets for mobile devices */
    .btn,
    .nav-link,
    .dropdown-item,
    .category-filter-btn,
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .capability-card:hover,
    .feature-card:hover,
    .testimonial-card:hover,
    .learn-more-card:hover {
        transform: none;
    }
}

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

.capability-card,
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Text Selection */
::selection {
    background: var(--accent-color);
    color: var(--text-on-dark);
}
