/* Dark mode variables (default) */
:root {
    /* Dark Mode Colors */
    --primary-bg: #0D1117; /* Void Black - Primary background */
    --primary-color: #00D4B8; /* Neon Teal - CTAs and buttons */
    --secondary-bg: #161B22; /* Dark Slate - Secondary backgrounds */
    --secondary-color: #B0B7C3; /* Light Gray - Text and subtle elements */
    --accent-color: #6F42C1; /* Electric Purple - Hover and accents */

    /* Applied color scheme */
    --dark-bg: var(--primary-bg);
    --card-bg: rgba(22, 27, 34, 0.8);
    --card-hover: rgba(22, 27, 34, 0.95);
    --border-color: rgba(176, 183, 195, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #8B949E;
    --primary: var(--primary-color);
    --secondary: var(--accent-color);

    /* Utility colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --card-gradient: linear-gradient(135deg, rgba(0, 212, 184, 0.05) 0%, rgba(111, 66, 193, 0.05) 100%);

    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-bg-hover: rgba(22, 27, 34, 0.8);
    --shadow-primary: rgba(0, 212, 184, 0.3);
    --shadow-large: rgba(0, 0, 0, 0.7);
}

/* Light mode variables */
[data-theme="light"] {
    /* Light Mode Colors */
    --primary-bg: #FFFFFF; /* Clean White - Main background */
    --primary-color: #00A896; /* Adjusted Teal for better contrast in light mode */
    --primary-text: #0D1117; /* Deep Space Blue - Headers and primary text */
    --secondary-color: #586069; /* Cool Gray - Borders and subtle backgrounds */
    --accent-color: #5E3FB5; /* Adjusted Purple for better light mode contrast */

    /* Applied color scheme */
    --dark-bg: #F6F8FA;
    --card-bg: #ffffff;
    --card-hover: rgba(0, 168, 150, 0.04);
    --border-color: rgba(208, 215, 222, 0.5);
    --text-primary: var(--primary-text);
    --text-secondary: #586069;
    --primary: var(--primary-color);
    --secondary: var(--accent-color);

    /* Utility colors */
    --success: #0A8754;
    --warning: #D97706;
    --error: #DC2626;

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --card-gradient: linear-gradient(135deg, rgba(0, 168, 150, 0.03) 0%, rgba(94, 63, 181, 0.03) 100%);

    /* Overlays and effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --shadow-primary: rgba(0, 168, 150, 0.15);
    --shadow-large: rgba(0, 0, 0, 0.05);
}

/* Light mode specific adjustments */
[data-theme="light"] body {
    background: var(--primary-bg);
}

[data-theme="light"] .nav-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Scrolled navbar - Light theme */
[data-theme="light"] .nav-container.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(208, 215, 222, 0.3);
}

/* Ensure text remains visible when scrolled */
.nav-container.scrolled .nav-link,
.nav-container.scrolled .logo-text {
    color: var(--text-primary);
}

[data-theme="light"] .nav-container.scrolled .nav-link,
[data-theme="light"] .nav-container.scrolled .logo-text {
    color: var(--primary-text);
}

[data-theme="light"] .video-overlay {
    background: var(--overlay-gradient);
}

[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .demo-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(26, 37, 54, 0.05);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 10px 20px rgba(0, 212, 184, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

[data-theme="light"] .problem-card:hover .card-front,
[data-theme="light"] .problem-card:hover .card-back {
    box-shadow: 0 10px 20px rgba(0, 212, 184, 0.15);
    border-color: var(--primary-color);
}

[data-theme="light"] .form-input,
[data-theme="light"] .newsletter-input,
[data-theme="light"] .popup-input,
[data-theme="light"] .chat-input input {
    background: rgba(163, 191, 250, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .newsletter-input:focus,
[data-theme="light"] .popup-input:focus,
[data-theme="light"] .chat-input input:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 184, 0.1);
}

[data-theme="light"] .footer-section {
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .chat-window {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .popup-content {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .language-dropdown {
    background: rgba(255, 255, 255, 0.98);
}

/* Theme toggle button styles */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: rotate(180deg);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    display: block;
}

/* Dark mode - show sun icon in golden yellow */
.theme-icon.sun-icon {
    color: #FDB813;
}

.theme-icon.moon-icon {
    color: #C3C9D5;
}

/* Light mode adjustments */
[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Light mode - show moon icon in dark color */
[data-theme="light"] .theme-icon.sun-icon {
    color: #FF8C00;
}

[data-theme="light"] .theme-icon.moon-icon {
    color: #1a202c;
}

/* Smooth transitions for theme switching */
body,
.nav-container,
.service-card,
.problem-card .card-inner,
.testimonial-card,
.demo-form-container,
.form-input,
.footer-section,
.logo-icon,
.logo-svg,
.logo-text,
.nav-link,
.cta-button,
.card-bg,
.chat-window,
.popup-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Faster transitions for interactive elements */
button,
a,
.nav-link,
.service-cta,
.form-nav-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Scrolled navbar - Dark theme */
.nav-container.scrolled {
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(176, 183, 195, 0.08);
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    transition: padding 0.3s ease;
}

.nav-container.scrolled .nav-content {
    padding: 0.5rem 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateX(2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-wrapper:hover .logo-icon {
    background: rgba(111, 66, 193, 0.15);
}

.logo-svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(83%) sepia(42%) saturate(1351%) hue-rotate(118deg) brightness(98%) contrast(101%);
    transition: all 0.3s ease;
}

[data-theme="light"] .logo-svg {
    filter: brightness(0) saturate(100%) invert(46%) sepia(100%) saturate(1256%) hue-rotate(145deg) brightness(96%) contrast(101%);
}

[data-theme="light"] .logo-icon {
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.08) 0%, rgba(94, 63, 181, 0.08) 100%);
    border-color: rgba(208, 215, 222, 0.6);
}

.logo-wrapper:hover .logo-svg {
    filter: brightness(0) saturate(100%) invert(39%) sepia(61%) saturate(1659%) hue-rotate(230deg) brightness(91%) contrast(91%);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.logo-wrapper:hover .logo-text {
    color: var(--primary);
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.language-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Show dropdown on hover */
.language-selector:hover .language-dropdown,
.language-selector:focus-within .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.language-option.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .cta-arrow,
html[dir="rtl"] .submit-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* CTA Buttons */
.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.primary-cta {
    background: var(--primary-color);
    color: #0D1117;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--shadow-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.primary-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.primary-cta:hover::before {
    width: 300px;
    height: 300px;
}

.primary-cta:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 6px 30px rgba(111, 66, 193, 0.4);
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.nav-cta {
    background: var(--primary-color);
    color: #0D1117;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.trust-indicators {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-large);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: var(--primary);
    box-shadow: 0 20px 40px var(--shadow-primary);
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card.featured {
    grid-column: span 2;
    border-color: var(--primary);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 212, 184, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(111, 66, 193, 0.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.service-cta {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-cta:hover {
    gap: 0.75rem;
}

.service-cta.primary {
    background: var(--primary-color);
    color: #0D1117;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-cta.primary:hover {
    background: var(--accent-color);
    color: white;
}

/* Problem-Solution Section */
.solutions-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.problem-card {
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.problem-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-back {
    transform: rotateY(180deg);
}

/* Ensure proper rendering in both themes */
[data-theme="light"] .card-front,
[data-theme="light"] .card-back {
    background: #ffffff;
    border: 1px solid rgba(208, 215, 222, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .problem-card {
    filter: none;
}

[data-theme="light"] .card-inner {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Fix for Safari and webkit browsers */
.problem-card * {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.problem-icon, .solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.flip-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.roi-badge {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #0D1117;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Demo Form Section */
.demo-section {
    padding: 5rem 0;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.demo-info {
    position: sticky;
    top: 100px;
}

.demo-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.demo-benefits {
    margin-bottom: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.urgency-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: var(--warning);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--warning);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.demo-form-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-progress {
    position: relative;
    margin-bottom: 2rem;
}

.progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    width: var(--progress, 33.33%);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--accent-gradient);
    border-color: var(--primary);
    color: white;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.form-input::placeholder {
    color: rgba(160, 160, 184, 0.5);
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.form-nav-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-nav-btn.prev {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.form-nav-btn.next {
    background: var(--primary-color);
    color: #0D1117;
    margin-left: auto;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-nav-btn.next:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #0D1117;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.3);
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.stars {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

blockquote {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    width: fit-content;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Client Logos */
.client-logos {
    text-align: center;
}

.logos-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.logos-carousel {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

.logo-item {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Footer */
.footer-section {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #0D1117;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.contact-item svg {
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(160, 160, 184, 0.6);
    margin-left: 0.5rem;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #0D1117;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #0D1117;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.5);
}

/* Pulsing animation for FAB */
@keyframes pulse-fab {
    0% {
        box-shadow: 0 0 0 0 var(--shadow-primary);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 212, 184, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 184, 0);
    }
}

.floating-cta.visible .floating-btn {
    animation: pulse-fab 2s infinite;
}

/* Stop animation on hover */
.floating-cta.visible .floating-btn:hover {
    animation: none;
}

/* Exit Intent Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    position: relative;
    animation: popupSlideIn 0.3s ease;
}

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

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.popup-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.popup-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.popup-form {
    display: flex;
    gap: 0.75rem;
}

.popup-input {
    flex: 1;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.popup-btn {
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: #0D1117;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    background: var(--accent-color);
    color: white;
}

.popup-note {
    margin-top: 1rem;
    text-align: center;
    color: rgba(160, 160, 184, 0.6);
    font-size: 0.85rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: #0D1117;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: white;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 380px;
    height: 500px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: #0D1117;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-radius: 12px 12px 12px 0;
}

.chat-message.bot {
    background: rgba(99, 102, 241, 0.1);
}

.chat-message.user {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px 12px 0 12px;
    margin-left: auto;
    max-width: 80%;
}

.chat-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-style: italic;
}

/* Typing indicator animation */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 4px;
    animation: typing-bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.chat-input button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #0D1117;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--accent-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .service-card.featured {
        grid-column: span 1;
    }

    .demo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-info {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.75rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .nav-link:hover {
        background: rgba(0, 212, 184, 0.1);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .trust-indicators {
        gap: 1.5rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .chat-window {
        width: calc(100vw - 4rem);
        right: 0;
    }

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-btn span {
        display: none;
    }
}