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

:root {
    --primary-bg: #0f172a;
    --secondary-bg: #1a1a2e;
    --dark-bg: #0a0e1a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #ea580c;
    --accent-hover: #dc2626;
    --card-bg: #ffffff;
    --card-text: #1e293b;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

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

/* Ensure horizontal navbar on desktop - Hypothesis A, C, D */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important;
        margin-bottom: 0 !important;
    }
    
    .navbar-nav .nav-link {
        border-bottom: none !important;
    }
    
    .navbar .d-flex.gap-2 {
        flex-direction: row !important;
        width: auto !important;
    }
}

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

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

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

.navbar-dark .dropdown-item {
    color: var(--text-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-primary);
}

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

.logo-text:hover {
    color: #0d9488;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

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

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

/* Hero Section */
.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::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-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

/* Buttons */
.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    color: var(--text-primary);
    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);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
    color: var(--text-primary);
}

.btn-outline-light {
    border: 2px solid var(--text-secondary);
    color: var(--text-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-primary);
    color: var(--text-primary);
    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;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.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: #f3f4f6;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

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

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

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

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

.bg-light .section-title {
    color: var(--card-text);
}

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

.bg-light .section-subtitle {
    color: #64748b;
}

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

.capability-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

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

.capability-list li {
    color: var(--card-text);
    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 */
.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.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-primary);
}

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

.feature-description {
    color: #64748b;
    line-height: 1.6;
}

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

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

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

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

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

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

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

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

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

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

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

.stat-item {
    padding: 2rem;
}

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

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

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

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

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

.testimonial-author {
    color: var(--card-text);
    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;
}

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

.learn-more-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.learn-more-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.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: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
}

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

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

.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;
    }
    
    .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;
    }
    
    .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;
    }
    
    .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-primary);
}
