/* ===== MALENTO AI Custom Styles ===== */

/* CSS Custom Properties - Green Color Palette */
:root {
    --primary-green: #198765;
    --light-green: #20a574;
    --dark-green: #146b52;
    --green-gradient: linear-gradient(135deg, #198765 0%, #20a574 100%);
    --neutral-gray: #6c757d;
    --light-gray: #f8f9fa;
    --success-green: #198765;
    --error-red: #dc3545;
    --white: #ffffff;
    --dark: #212529;

    /* Override Bootstrap's primary color */
    --bs-primary: #198765;
    --bs-primary-rgb: 25, 135, 101;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --section-padding: 80px 0;
    --section-padding-mobile: 60px 0;
    --card-spacing: 30px;
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Global Styles ===== */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== Custom Bootstrap Overrides ===== */
.btn-primary {
    background: var(--green-gradient);
    border: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    padding: 12px 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #146b52 0%, #198765 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    padding: 12px 24px;
    transition: all var(--transition-normal);
}

.btn-outline-primary:hover {
    background: var(--green-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Navigation Styles ===== */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    color: var(--primary-green) !important;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: var(--font-weight-semibold);
    color: var(--dark) !important;
    transition: all var(--transition-fast);
    position: relative;
    margin: 0 0.5rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green-gradient);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Hero Section Styles ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%236f42c1" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%238a63d2" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

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

.hero-badge {
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-section .lead {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-section .row.g-3 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-section .d-flex {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Floating stats animation */
.position-absolute .bg-white {
    animation: float 3s ease-in-out infinite;
}

.position-absolute:nth-child(2) .bg-white {
    animation-delay: 1.5s;
}

/* ===== Service Cards Styles ===== */
.service-card {
    border: none;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    height: 100%;
    background: var(--white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    transition: all var(--transition-normal);
}

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

.service-card:hover .service-icon i {
    background: var(--green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Stats Section ===== */
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* ===== Process Steps ===== */
.bg-primary.rounded-circle,
.bg-primary.text-white.rounded-circle {
    background: var(--green-gradient) !important;
    transition: all var(--transition-normal);
    position: relative;
}

.bg-primary.rounded-circle:hover,
.bg-primary.text-white.rounded-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(25, 135, 101, 0.3);
}

/* ===== Contact Form Styles ===== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 101, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    transition: all var(--transition-fast);
}

.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 101, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 101, 0.25);
}

/* ===== Footer Styles ===== */
.hover-primary {
    transition: all var(--transition-fast);
}

.hover-primary:hover {
    color: var(--light-green) !important;
    transform: translateY(-2px);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== Utility Classes ===== */
.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.text-primary {
    color: var(--primary-green) !important;
}

.bg-primary,
.bg-primary.text-white {
    background: var(--green-gradient) !important;
}

.bg-primary-subtle {
    background-color: rgba(25, 135, 101, 0.1) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 4rem 0;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .stat-item {
        margin-bottom: 2rem;
    }
}

/* ===== Loading States ===== */
.btn-loading {
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== Success/Error Messages ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
}

.alert-success {
    background: linear-gradient(135deg, #d1eddb 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* ===== Scroll Animations ===== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* ====
= Additional Section Styles ===== */

/* Case Studies / Testimonials */
.case-study-card {
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-lg);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-study-card .rounded-circle {
    border: 3px solid var(--light-green);
    transition: all var(--transition-fast);
}

.case-study-card:hover .rounded-circle {
    transform: scale(1.1);
    border-color: var(--primary-green);
}

/* FAQ Accordion */
.accordion-button {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius) !important;
    color: var(--dark);
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--green-gradient);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 101, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all var(--transition-fast);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    line-height: 1.7;
}

/* CTA Section */
.bg-primary.text-white {
    background: var(--violet-gradient) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary.text-white::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 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.bg-primary.text-white .container {
    position: relative;
    z-index: 2;
}

.btn-light {
    background: var(--white);
    border: none;
    color: var(--primary-green);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
}

.btn-light:hover {
    background: var(--light-gray);
    color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to specific elements */
.case-study-card {
    animation: zoomIn 0.6s ease-out;
}

.case-study-card:nth-child(1) {
    animation-delay: 0.1s;
}

.case-study-card:nth-child(2) {
    animation-delay: 0.2s;
}

.case-study-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    .hide-on-mobile{
    display:none;
    }
#process{display:none;}
    .hero-section .lead {
        font-size: 1rem;
    }

    .service-card .card-body {
        padding: 2rem 1.5rem;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .stat-item .display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .btn,
    .bg-primary,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #0d5940;
        --light-green: #146b52;
        --dark-green: #0a3d2b;
    }

    .btn-primary {
        border: 2px solid var(--dark-green);
    }

    .form-control:focus {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* 
===== Interactive Demo Styles ===== */

.upload-area {
    border-color: #dee2e6 !important;
    transition: all var(--transition-normal);
    cursor: pointer;
    background: var(--white);
}

.upload-area:hover {
    border-color: var(--primary-green) !important;
    background: rgba(25, 135, 101, 0.05) !important;
}

.upload-area.border-primary {
    border-color: var(--primary-green) !important;
    background: rgba(25, 135, 101, 0.1) !important;
}

.upload-area i {
    transition: all var(--transition-normal);
}

.upload-area:hover i {
    transform: scale(1.1);
    color: var(--primary-green) !important;
}

/* Demo Results Animation */
#demoResults {
    animation: fadeInUp 0.8s ease-out;
}

#demoResults .card {
    animation: slideInUp 0.6s ease-out;
}

#demoResults .card:nth-child(1) {
    animation-delay: 0.1s;
}

#demoResults .card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
#loadingState {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Enhanced Card Borders */
.border-success {
    border-color: var(--success-green) !important;
    border-width: 2px !important;
}

.border-info {
    border-color: #0dcaf0 !important;
    border-width: 2px !important;
}

/* ROI Calculator Specific Styles */
.form-range::-webkit-slider-thumb {
    background: var(--primary-green);
}

.form-range::-moz-range-thumb {
    background: var(--primary-green);
    border: none;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 101, 0.25);
}

/* Legal Pages Styles */
.legal-page {
    font-size: 1.1rem;
    line-height: 1.7;
}

.legal-page h2 {
    color: var(--primary-green);
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-page .card {
    border: none;
    box-shadow: var(--shadow-sm);
}

.legal-page address {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-green);
}

/* Enhanced Mobile Responsiveness for New Features */
@media (max-width: 768px) {
#process{display:none;}
    .upload-area {
        padding: 2rem 1rem !important;
    }

    .upload-area .display-4 {
        font-size: 2rem;
    }

    #demoResults .card-body {
        padding: 1rem;
    }

    .legal-page .card-body {
        padding: 2rem 1.5rem;
    }
}

/* Print Styles for ROI Calculator */
@media print {

    #roiCalculator,
    .btn,
    .navbar,
    footer {
        display: none !important;
    }

    #resultsSection {
        display: block !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Enhanced Accessibility */
.upload-area:focus-within {
    outline: 2px solid var(--primary-violet);
    outline-offset: 2px;
}

/* Dark mode support preparation */
@media (prefers-color-scheme: dark) {
    .upload-area {
        background: #2d3748;
        border-color: #4a5568 !important;
        color: #e2e8f0;
    }

    .upload-area:hover {
        background: rgba(25, 135, 101, 0.2) !important;
    }
}

/* ===== Process Visualization Styles ===== */

.process-visualization {
    padding: 2rem 0;
    position: relative;
}

.process-module {
    position: relative;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.module-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.module-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--green-gradient);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1;
}

.module-container>* {
    position: relative;
    z-index: 2;
}

.process-module:hover .module-container {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.process-module:hover .module-container::before {
    opacity: 0.05;
}

.module-icon {
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.module-svg {
    color: var(--primary-green);
    transition: all var(--transition-normal);
}

.process-module:hover .module-svg {
    transform: scale(1.1);
    color: var(--dark-green);
}

.module-title {
    font-weight: var(--font-weight-bold);
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.module-description {
    color: var(--neutral-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Connection Paths */
.connection-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.connection-svg {
    width: 100%;
    height: 60px;
}

.connection-path {
    stroke-dasharray: 5, 5;
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

/* Data Particles Animation */
.data-particles {
    opacity: 0.8;
}

.particle {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Module Highlight Animation */
.process-module.active .module-container {
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(25, 135, 101, 0.3);
    animation: moduleHighlight 2s ease-in-out;
}

@keyframes moduleHighlight {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(25, 135, 101, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(25, 135, 101, 0.5);
    }
}

/* Animation Controls */
.animation-controls {
    margin-top: 2rem;
}

.animation-controls .btn {
    margin: 0 0.5rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-normal);
}

.animation-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Connections */
.mobile-connections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.mobile-arrow {
    animation: bounceDown 2s ease-in-out infinite;
}

.mobile-arrow:nth-child(2) {
    animation-delay: 1s;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Paused State */
.process-visualization.paused .connection-path {
    animation-play-state: paused;
}

.process-visualization.paused .data-particles circle {
    animation-play-state: paused;
}

.process-visualization.paused .module-svg animateTransform,
.process-visualization.paused .module-svg animate {
    animation-play-state: paused;
}

/* Hover Effects for Individual Modules */
.process-module:hover .module-container {
    background: linear-gradient(135deg, rgba(25, 135, 101, 0.02) 0%, rgba(32, 165, 116, 0.02) 100%);
}

/* Enhanced SVG Animations */
.rotating-gear {
    transform-origin: center;
}

.data-flow rect {
    opacity: 0.7;
}

.output-stream rect {
    opacity: 0.8;
}

/* Responsive Design for Process Visualization */
@media (max-width: 992px) {
    .connection-container {
        min-height: 100px;
    }

    .connection-svg {
        height: 40px;
    }

    .module-container {
        padding: 1.5rem 1rem;
    }

    .module-svg {
        width: 60px;
        height: 60px;
    }

    /* Hide connections on smaller screens to keep modules side by side */
    .connection-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .process-visualization {
        padding: 1rem 0;
    }

    .module-container {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .module-svg {
        width: 50px;
        height: 50px;
    }

    .module-title {
        font-size: 1.1rem;
    }

    .module-description {
        font-size: 0.9rem;
    }

    /* Keep modules side by side even on mobile */
    .process-visualization .row {
        flex-wrap: nowrap;
    }

    .process-visualization [class*="col-"] {
        flex: 1;
        max-width: none;
    }

    .connection-container {
        display: none;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .connection-path {
        animation: none;
    }

    .data-particles circle {
        animation: none;
    }

    .rotating-gear animateTransform {
        animation: none;
    }

    .mobile-arrow {
        animation: none;
    }

    .process-module:hover .module-container {
        transform: none;
    }

    .process-module:hover .module-svg {
        transform: none;
    }
}

/* Focus States for Keyboard Navigation */
.process-module:focus-visible .module-container {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

.animation-controls .btn:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .module-container {
        border: 2px solid var(--dark);
    }

    .process-module:hover .module-container {
        border-color: var(--primary-green);
        border-width: 3px;
    }

    .connection-path {
        stroke-width: 4px;
    }
}

/* Print Styles for Process Visualization */
@media print {
    .process-visualization {
        page-break-inside: avoid;
    }

    .animation-controls {
        display: none;
    }

    .connection-path {
        animation: none;
        stroke-dasharray: none;
    }

    .data-particles {
        display: none;
    }
}

/* ===
== Specific Fixes for Circular Elements ===== */
.bg-primary.text-white.rounded-circle,
.bg-primary.text-white.rounded-circle.d-flex,
.bg-primary.text-white.rounded-circle.d-inline-flex {
    background: var(--green-gradient) !important;
    color: white !important;
}

/* Ensure all bg-primary elements have green background */
div.bg-primary,
span.bg-primary,
.bg-primary {
    background: var(--green-gradient) !important;
}

/* Override Bootstrap's default primary color */
.btn-primary,
.bg-primary,
.text-bg-primary {
    --bs-primary: #198765;
    --bs-primary-rgb: 25, 135, 101;
}

/* 
===== Stats Section Specific Fixes ===== */
section.bg-primary.text-white,
.bg-primary.text-white {
    background: var(--green-gradient) !important;
    color: white !important;
}

/* Ensure stats section has proper styling */
.bg-primary.text-white .stat-item {
    color: white !important;
}

.bg-primary.text-white .display-4 {
    color: white !important;
}

/* ==
=== Floating Background Elements ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(25, 135, 101, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-shape.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
    border-radius: 20px;
    background: rgba(32, 165, 116, 0.08);
}

.floating-shape.shape-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 80%;
    animation-delay: 4s;
    animation-duration: 7s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

.floating-shape.shape-4 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 9s;
    border-radius: 10px;
    background: rgba(25, 135, 101, 0.06);
}

.floating-shape.shape-5 {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 30%;
    animation-delay: 3s;
    animation-duration: 6s;
    background: rgba(20, 165, 116, 0.12);
}

/* Gr
adient Overlay Animation */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(25, 135, 101, 0.03) 0%,
            rgba(32, 165, 116, 0.05) 25%,
            rgba(20, 165, 116, 0.02) 50%,
            rgba(25, 135, 101, 0.04) 75%,
            rgba(32, 165, 116, 0.03) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Parallax Effect */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* ==
=== Interactive Service Cards ===== */
.interactive-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 135, 101, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.interactive-card:hover::before {
    left: 100%;
}

.interactive-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(25, 135, 101, 0.15);
}

/* Animated Icons */
.animated-icon {
    position: relative;
    display: inline-block;
}

.icon-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--primary-green);
    opacity: 0;
    animation: scanDocument 3s ease-in-out infinite;
}

@keyframes scanDocument {

    0%,
    70% {
        opacity: 0;
        transform: translateY(0);
    }

    10%,
    60% {
        opacity: 0.8;
    }

    15% {
        transform: translateY(20px);
    }

    30% {
        transform: translateY(40px);
    }

    45% {
        transform: translateY(60px);
    }

    60% {
        transform: translateY(80px);
    }

    65%,
    100% {
        opacity: 0;
        transform: translateY(80px);
    }
}

/* Expandable Details */
.technical-details .details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.technical-details.expanded .details-content {
    max-height: 300px;
}

.expand-btn {
    transition: all 0.3s ease;
}

.technical-details.expanded .expand-btn i {
    transform: rotate(45deg);
}

.technical-details.expanded .expand-btn {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/*
 ===== Customer Journey Timeline ===== */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    /* Geht bis zum Ende */
    background: #e9ecef;
    z-index: 1;
}

.progress-bar {
    width: 100%;
    height: 0%;
    background: var(--green-gradient);
    transition: height 2s ease-out;
    border-radius: 2px;
}

.timeline {
    position: relative;
    z-index: 2;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: calc(50% + 40px);
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: 4px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.4s ease;
}

.timeline-marker:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(25, 135, 101, 0.3);
}

.marker-inner {
    width: 40px;
    height: 40px;
    background: var(--green-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.timeline-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-card::before {
    right: -30px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: -30px;
    border-right-color: white;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(25, 135, 101, 0.15);
}

.timeline-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.timeline-summary {
    border: 2px solid var(--primary-green);
    background: rgba(25, 135, 101, 0.05) !important;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline-progress {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-card::before {
        display: none;
    }
}

.faq-search .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.faq-search .form-control {
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
}

.faq-search .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-search .input-group-text {
    border: none;
    background: white;
}

.faq-categories .category-filter {
    transition: all 0.3s ease;
    border-radius: 20px;
}

.faq-categories .category-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 101, 0.2);
}

.faq-categories .category-filter.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.faq-item {
    transition: all 0.4s ease;
    transform: translateY(0);
}

.faq-item:hover {
    transform: translateY(-2px);
}

.accordion-button {
    padding: 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--green-gradient);
    color: white;
    box-shadow: none;
}

.accordion-button:not(.collapsed) i {
    color: white !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 101, 0.25);
    border-color: var(--primary-green);
}

.accordion-body {
    padding: 1.5rem;
    background: rgba(25, 135, 101, 0.02);
    border-radius: 0 0 8px 8px;
    line-height: 1.7;
}

/* FAQ Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No Results Styling */
#noResults {
    animation: fadeIn 0.5s ease-out;
}

/* Mobile FAQ Adjustments */
@media (max-width: 768px) {
    .faq-categories .category-filter {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ===
== Timeline Completion Highlight ===== */
.timeline-summary h5.highlight-complete {
    animation: highlightGreen 2s ease-in-out;
    color: var(--primary-green) !important;
    text-shadow: 0 0 10px rgba(25, 135, 101, 0.3);
}

@keyframes highlightGreen {
    0% {
        color: var(--primary-green);
        text-shadow: 0 0 5px rgba(25, 135, 101, 0.3);
        transform: scale(1);
    }

    25% {
        color: var(--primary-green);
        text-shadow: 0 0 20px rgba(25, 135, 101, 0.6);
        transform: scale(1.05);
    }

    50% {
        color: var(--primary-green);
        text-shadow: 0 0 25px rgba(25, 135, 101, 0.8);
        transform: scale(1.08);
    }

    75% {
        color: var(--primary-green);
        text-shadow: 0 0 20px rgba(25, 135, 101, 0.6);
        transform: scale(1.05);
    }

    100% {
        color: var(--primary-green);
        text-shadow: 0 0 10px rgba(25, 135, 101, 0.3);
        transform: scale(1);
    }
}

/* Zusätzlicher Glow-Effekt für die Timeline-Zusammenfassung */
.timeline-summary.completed {
    box-shadow: 0 0 30px rgba(25, 135, 101, 0.2);
    border-color: var(--primary-green);
    animation: summaryGlow 1s ease-in-out;
}

@keyframes summaryGlow {
    0% {
        box-shadow: 0 0 10px rgba(25, 135, 101, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(25, 135, 101, 0.3);
    }

    100% {
        box-shadow: 0 0 20px rgba(25, 135, 101, 0.2);
    }
}/* ===== FAQ Show More Button ===== */
#showMoreFAQ {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

#showMoreFAQ:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 135, 101, 0.2);
}

#showMoreFAQ i {
    transition: transform 0.3s ease;
}

/* FAQ Hidden Items Animation */
.faq-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.faq-hidden[style*="block"] {
    opacity: 1;
    transform: translateY(0);
}
