/* CSS Variables */
:root {
    --primary-color: #4f46e5;      /* Less saturated indigo */
    --primary-dark: #3730a3;       /* Darker indigo */
    --primary-light: #818cf8;      /* Light indigo */
    --secondary-color: #10b981;    /* Keep the green */
    --accent-color: #f59e0b;       /* Keep the amber */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;       /* Lighter background */
    --bg-dark: #1f2937;
    --border-color: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-logo i {
    margin-right: 0.5rem;
    font-size: 2.5rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loading 2s ease-in-out;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.send-fax-btn:hover .btn-shine {
    left: 100%;
}

.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

/* Enhanced Hero Badge/Tag */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #818cf8, #4f46e5);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 50px 50px 0;
}

.hero-badge i {
    font-size: 1rem;
    color: white;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.badge-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.hero-badge span {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Enhanced Stat Cards */
/* Enhanced Stat Cards - Refined Colors */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 1.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    z-index: 1;
    border-radius: 0 0 20px 20px;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: white;
    position: relative;
    z-index: 2;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.6rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Refined colors for each stat card */
.stat-item:nth-child(1) {
    background: linear-gradient(135deg, #6366f1, #4f46e5); /* Indigo */
}

.stat-item:nth-child(2) {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed); /* Purple */
}

.stat-item:nth-child(3) {
    background: linear-gradient(135deg, #ec4899, #db2777); /* Pink */
}

/* Demo Pointer */
.hero-visual {
    position: relative;
}

.demo-pointer {
    position: absolute;
    top: -80px;
    right: 60%;
    z-index: 5; /* Lower z-index so it doesn't overlap tabs */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float-pointer 3s ease-in-out infinite;
}

.pointer-line {
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #818cf8);
}

.pointer-text {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pointer-text i {
    color: #818cf8;
    font-size: 1.2rem;
}

@keyframes float-pointer {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Demo Interface */
.eye2automation-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1rem;
}

.tab {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

/* Automation Controls */
.automation-controls {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.control-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.automation-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.automation-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Add these properties to the existing .visual-container class */
.visual-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: white;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}


/* History Tab */
.history-preview {
    padding: 1.5rem;
}

.history-section {
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


.history-item {
    display: flex;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
}

.item-label {
    font-weight: 600;
    width: 120px;
    color: var(--text-primary);
}

.item-value {
    color: var(--text-secondary);
}

/* OptoAdvance Tab */
.optos-preview {
    padding: 1.5rem;
    min-height: 200px;
}

.optos-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.optos-placeholder p {
    color: var(--text-secondary);
    max-width: 300px;
}

/* Forms Tab */
.employee-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.employee-selector span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.employee-selector select {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.edit-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    background: #f1f5f9;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

.form-preview {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.submit-form-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.submit-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Calls Tab */
.date-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.calls-preview {
    padding: 1.5rem;
}

.calls-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    flex: 1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 3px solid var(--primary-color);
}

.summary-card.warning {
    border-left-color: #f59e0b;
}

.summary-card.danger {
    border-left-color: #ef4444;
}

.summary-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.summary-card.warning .summary-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.summary-card.danger .summary-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calls-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.call-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.call-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.call-item.missed {
    border-left: 3px solid #ef4444;
}

.call-item.answered {
    border-left: 3px solid #10b981;
}

.call-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.call-item.missed .call-icon {
    color: #ef4444;
}

.call-item.answered .call-icon {
    color: #10b981;
}

.call-details {
    flex: 1;
}

.call-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.call-title span {
    font-weight: 600;
    color: var(--text-primary);
}

.call-tag {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.call-tag.appointment {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.call-tag.inquiry {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.call-tag.prescription {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.call-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.call-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: #f1f5f9;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

/* Make the section-header a positioning container */
.dashboard-demo .section-header {
    position: relative;
    padding-bottom: 4rem; /* Add space below for the logos */
}

.floating-logo {
    position: absolute;
    max-height: 45px; /* Control the logo size */
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: -1; /* Place logos behind the header text */
    animation: logo-float 6s ease-in-out infinite;
}

/* Specific position for Mango Voice logo */
.logo-mango {
    top: -10px;
    left: 10%;
    transform: rotate(-10deg);
    animation-delay: 0s;
}

/* Specific position for Weave logo */
.logo-weave {
    top: 20px;
    right: 12%;
    transform: rotate(8deg);
    animation-delay: 1s; /* Start animation at a different time */
}

/* Floating animation keyframes */
@keyframes logo-float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--initial-rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--float-rotate, 0deg));
    }
}

/* Set rotation variables for the animation */
.logo-mango { --initial-rotate: -10deg; --float-rotate: -15deg; }
.logo-weave { --initial-rotate: 8deg; --float-rotate: 13deg; }


/* Hide floating logos on mobile to prevent clutter */
@media (max-width: 768px) {
    .floating-logo {
        display: none;
    }
    .dashboard-demo .section-header {
        padding-bottom: 0; /* Reset padding on mobile */
    }
}

/* Integration Showcase */
.integration-showcase-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ehr-card, .eye2fax-card, .srfax-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 200px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ehr-card:hover, .eye2fax-card:hover, .srfax-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.integration-logo, .srfax-logo {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.ehr-card h3, .eye2fax-card h3, .srfax-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ehr-card p, .eye2fax-card p, .srfax-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* New Flow Animation */
.connection-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.connection-flow i {
    font-size: 1.5rem;
    color: var(--primary-light);
    opacity: 0.3;
    animation: flow-pulse 1.5s ease-in-out infinite;
}

.connection-flow i:nth-child(1) {
    animation-delay: 0s;
}
.connection-flow i:nth-child(2) {
    animation-delay: 0.2s;
}
.connection-flow i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes flow-pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        color: var(--primary-color);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.feature-card.premium {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    transform: scale(1.05);
}

.feature-card.premium::before {
    display: none;
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-card.premium .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.feature-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card.premium h3 {
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-card.premium p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-demo, .feature-preview {
    margin-top: 1.5rem;
}

.demo-steps {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.step {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Integration Preview */
.integration-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.integration-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.integration-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Preview Mini */
.form-preview-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.form-option {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-option::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

/* Employee Preview */
.employee-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    justify-content: center;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.employee-preview span {
    font-weight: 500;
    color: var(--text-primary);
}

.employee-preview i {
    color: var(--primary-color);
    cursor: pointer;
}

/* Transcription Preview */
.transcription-preview {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 4px 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Analytics Chart */
.analytics-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 60px;
    padding: 0 1rem;
}

.chart-bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    animation: chartGrow 1s ease-out;
}

@keyframes chartGrow {
    from { height: 0; }
}

/* Get Started Section */
.get-started {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

/* Journey Path - Visual Connection Between Steps */
.journey-path {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    padding: 2rem 0;
}

.journey-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: translateY(-50%);
    border-radius: 2px;
}

.journey-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 0 10%;
}

.journey-dot {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.journey-dot.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.3);
}

.journey-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.journey-dot:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Enhanced Step Cards */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card.premium {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85) 0%, rgba(99, 102, 241, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

/* Add glass reflections */
.step-card.premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(30deg);
    pointer-events: none;
}

.step-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step-card.premium .step-feature i {
    color: #a5b4fc; /* Lighter indigo for better visibility */
}

.step-card.premium .step-feature span,
.step-card.premium p,
.step-card.premium h3 {
    color: white;
    position: relative;
    z-index: 2;
}

/* Glass effect for the icon */
.step-card.premium .step-icon {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Add subtle inner border */
.step-card.premium {
    box-shadow: 
        0 15px 35px rgba(79, 70, 229, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Button styling for glass effect */
.step-card.premium .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.step-card.premium .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Time indicator styling */
.step-card.premium .step-time {
    color: rgba(255, 255, 255, 0.8);
}

.glass-highlights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.glass-highlights::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
}

.glass-highlights::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 70% 70%,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%
    );
}

.step-visual {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.step-card.premium .step-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-card.premium .step-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.step-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.step-feature i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.step-action {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.btn-step {
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

.step-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.step-card.premium .step-time {
    color: rgba(255, 255, 255, 0.8);
}

/* CTA at the bottom of the section */
.get-started-cta {
    margin-top: 5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.cta-content {
    color: white;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-primary);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.pricing-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.regular-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.7;
}

.promo-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-features {
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.pricing-feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.pricing-cta {
    padding: 2rem 3rem 3rem;
    text-align: center;
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.method-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.method-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.method-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

/* Footer Logo Enhancement */
.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-logo .logo-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-family: 'Space Grotesk', sans-serif;
}

/* Add a subtle glow effect on hover */
.footer-logo:hover .logo-icon {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

.footer-brand p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-light);
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.compliance-badge i {
    color: var(--secondary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.close {
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.close:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.calendar-placeholder {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.calendar-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.calendar-placeholder h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.calendar-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Video Modal */
.video-modal-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .modal-body.video-container {
        padding: 0;
        height: auto;
    }
}

/* Transcript Modal */
.transcript-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.transcript-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

.transcript-tags {
    display: flex;
    gap: 0.75rem;
}

.sentiment-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sentiment-tag.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.sentiment-tag.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sentiment-tag.neutral {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.transcript-summary {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.transcript-summary h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.transcript-summary p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.transcript-text h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.transcript-lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem;
}

.transcript-line {
    display: flex;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.transcript-line.system {
    background: #f8fafc;
    color: var(--text-secondary);
}

.transcript-line.caller {
    background: rgba(99, 102, 241, 0.05);
}

.transcript-line.agent {
    background: rgba(16, 185, 129, 0.05);
}

.line-time {
    width: 80px;
    color: var(--text-light);
    font-size: 0.8rem;
}

.line-speaker {
    width: 60px;
    font-weight: 600;
    color: var(--primary-color);
}

.transcript-line.agent .line-speaker {
    color: var(--secondary-color);
}

.line-text {
    flex: 1;
}

.transcript-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .integration-visual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .connection-line {
        width: 4px;
        height: 40px;
        transform: rotate(90deg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .hero-cta {
        flex-direction: column;
        gap: 16px; /* Increase gap between buttons */
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
    flex-direction: row; /* Keep cards in a row */
    justify-content: center;
    gap: 0.75rem; /* Reduce space between cards */
    align-items: stretch; /* Make cards equal height */
}

.stat-item {
    padding: 1rem 0.5rem; /* Reduce padding */
    min-width: 90px; /* Ensure they have a minimum width */
    flex: 1; /* Allow cards to share space */
    max-width: 110px; /* Prevent them from getting too wide */
}

.stat-icon {
    width: 45px; /* Smaller icon container */
    height: 45px;
    font-size: 1.2rem; /* Smaller icon */
    margin-bottom: 0.75rem;
    border-radius: 12px;
}

.stat-number {
    font-size: 1.75rem; /* Smaller number font */
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem; /* Smaller label font */
    line-height: 1.2; /* Adjust line height for smaller text */
    font-weight: 500;
}
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .feature-card.premium {
        transform: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .browser-mockup {
        transform: none;
    }
    
    .browser-mockup:hover {
        transform: scale(1.02);
    }
    
    .journey-path {
        display: none;
    }
    
    .get-started-cta {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .tab-content {
        padding: 1rem;
    }
    
    /* Fix control header on mobile */
    .control-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0.75rem 1rem;
    }
    
    /* Make sure automation controls have white background */
    .automation-controls {
        background: white;
    }
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-white {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .pricing-header,
    .pricing-features,
    .pricing-cta {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .eye2automation-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .calls-summary {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta {
        gap: 20px; /* Even more gap on very small screens */
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 90%;
        padding: 14px 20px; /* Slightly larger touch target */
    }
    
    /* Add breathing room around buttons */
    .btn-primary, .btn-secondary {
        margin: 5px 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #666666;
    }
}

/* 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;
    }
    
    .floating-element {
        animation: none;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Mobile Optimization for Hero Section */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
        margin: 0;
        padding: 0;
    }
    
    .container, .hero-container, .nav-container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix for browser mockup in mobile view */
    .browser-mockup, .visual-container, .hero-visual {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }
    
    /* Fix for any potential overflowing elements */
    img, svg, video {
        max-width: 100%;
        height: auto;
    }
    
    /* Move the hero badge down on mobile */
    .hero-badge {
        margin-top: 60px;
        margin-bottom: 1.5rem;
    }
    
    /* Fix navigation and hamburger area */
    .nav-container {
        padding: 0 1rem;
        width: 100%;
    }
    
    /* Fix hero content */
    .hero-content {
        width: 100%;
        padding: 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
}

/* For even smaller screens */
@media (max-width: 480px) {
    .hero-badge {
        margin-top: 40px;
    }
    
    .hero-stats {
        flex-direction: row;
    }
    
    .stat-item {
        max-width: 90px;
        padding: 0.75rem 0.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 80%;
    }
}

/* Fix for browser mockup tabs on mobile */
@media (max-width: 480px) {
    .eye2automation-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0;
    }
    
    .tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
}

/* Nav logo styling */
.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo:active {
    transform: scale(0.98);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-icon {
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Fix for demo pointer on mobile */
@media (max-width: 768px) {
    .demo-pointer {
        display: none; /* Hide on mobile to prevent layout issues */
    }
    
    .visual-container {
        margin-top: 40px; /* Add space at the top */
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .eye2automation-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .eye2automation-tabs {
        justify-content: flex-start;
    }
    
    .tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .automation-controls {
        border-radius: 8px;
    }
    
    .control-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .automation-btn, .submit-form-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Fix tabs display on mobile */
@media (max-width: 768px) {
    .eye2automation-tabs {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        background: #f1f5f9;
        scrollbar-width: thin; /* For Firefox */
        scrollbar-color: rgba(99, 102, 241, 0.3) transparent; /* For Firefox */
    }

    /* Custom scrollbar for Webkit browsers (Chrome, Safari, Edge) */
    .eye2automation-tabs::-webkit-scrollbar {
        height: 2px; /* Very thin scrollbar */
    }
    
    .eye2automation-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .eye2automation-tabs::-webkit-scrollbar-thumb {
        background: rgba(99, 102, 241, 0.3); /* Light indigo color */
        border-radius: 10px;
    }
    
    /* Hide scrollbar but keep functionality */
    .eye2automation-tabs {
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    .eye2automation-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    /* Add subtle bottom border to indicate scrollability */
    .eye2automation-tabs::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, 
            transparent 0%, 
            rgba(99, 102, 241, 0.3) 20%, 
            rgba(99, 102, 241, 0.3) 80%, 
            transparent 100%);
    }
    
    .tab {
        flex: 1;
        padding: 0.75rem 0.25rem;
        font-size: 0.7rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .tab span {
        display: block;
        font-size: 0.65rem;
    }
    
    .tab i {
        margin-bottom: 2px;
    }
    
    .tab-badge {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(30%, -30%);
    }
    
    /* Remove any background color that might be showing */
    .visual-container {
        background: white;
    }
    
    /* Ensure tab content has white background */
    .tab-content {
        background: white;
    }
}


/* Fix call actions and buttons on mobile */
@media (max-width: 480px) {
    /* Fix call item layout */
    .call-item {
        flex-wrap: wrap;
        padding: 0.75rem;
    }
    
    .call-details {
        width: calc(100% - 50px); /* Subtract the width of call-icon */
        margin-bottom: 0.5rem;
    }
    
    /* Move call actions below */
    .call-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    /* Make action buttons slightly larger for better touch targets */
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Fix call meta text wrapping */
    .call-meta {
        white-space: normal;
        line-height: 1.4;
    }
    
    /* Fix call title wrapping */
    .call-title {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Ensure call list has proper padding */
    .calls-list {
        padding: 0.25rem;
    }
    
    /* Fix call tags */
    .call-tag {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
}

/* Dashboard Demo Styles */
.dashboard-demo {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.dashboard-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 3rem;
}

.dashboard-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1rem;
}

.dashboard-tab {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.dashboard-tab:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.dashboard-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.dashboard-panel {
    display: none;
    padding: 2rem;
}

.dashboard-panel.active {
    display: block;
}

/* Metrics Panel */
.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.date-range-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-icon.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.metric-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.metric-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-data {
    flex: 1;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.metric-trend.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.metric-trend.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Hourly Chart */
.hourly-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chart-bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
    position: relative;
}

.chart-bar::before {
    content: attr(data-hour);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.chart-labels span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
}

/* Pie Chart */
.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f1f5f9;
    position: relative;
    margin: 0 auto 2rem;
}

.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip: rect(0, 100px, 200px, 0);
    transform: rotate(0deg);
    transform-origin: center;
}

.pie-segment:nth-child(1) {
    background: var(--color);
    clip-path: polygon(50% 50%, 50% 0%, calc(50% + 50% * var(--percentage) / 100) 0%);
    transform: rotate(0deg);
}

.pie-segment:nth-child(2) {
    background: var(--color);
    clip-path: polygon(50% 50%, 100% 0%, 100% calc(50% * var(--percentage) / 100));
    transform: rotate(calc(360deg * 0.35));
}

.pie-segment:nth-child(3) {
    background: var(--color);
    clip-path: polygon(50% 50%, 100% 50%, 100% calc(50% + 50% * var(--percentage) / 100));
    transform: rotate(calc(360deg * 0.6));
}

.pie-segment:nth-child(4) {
    background: var(--color);
    clip-path: polygon(50% 50%, 50% 100%, calc(50% - 50% * var(--percentage) / 100) 100%);
    transform: rotate(calc(360deg * 0.75));
}

.pie-segment:nth-child(5) {
    background: var(--color);
    clip-path: polygon(50% 50%, 0% 100%, 0% calc(100% - 50% * var(--percentage) / 100));
    transform: rotate(calc(360deg * 0.9));
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Waterfall Chart */
.waterfall-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.waterfall-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.waterfall-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.patient-info {
    width: 200px;
}

.patient-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.patient-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.patient-status.missed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.patient-status.connected {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.call-attempts {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.attempt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    min-width: 80px;
}

.attempt.missed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.attempt.connected {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.attempt span {
    font-size: 0.8rem;
    font-weight: 500;
}

.revenue-impact {
    width: 150px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

/* Call Logs Panel */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-filter {
    position: relative;
    width: 300px;
}

.search-filter input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
}

.search-filter i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-option span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-option select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

/* Calls Table */
.calls-table {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-header {
    display: flex;
    background: #f8fafc;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #e2e8f0;
}

.header-cell {
    flex: 1;
    padding: 0 0.5rem;
}

.header-cell:first-child {
    flex: 1.5;
}

.header-cell:last-child {
    flex: 0.5;
    text-align: center;
}

.table-body {
    max-height: 500px;
    overflow-y: auto;
}

.table-row {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: #f8fafc;
}

.cell {
    flex: 1;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.cell:first-child {
    flex: 1.5;
}

.cell:last-child {
    flex: 0.5;
    justify-content: center;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.connected {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.missed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.row-actions {
    display: flex;
    gap: 0.5rem;
}

/* Table Pagination */
.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Missed Calls Panel */
.panel-header.alert {
    background: rgba(239, 68, 68, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.alert-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ef4444;
    font-weight: 500;
}

.alert-message i {
    font-size: 1.25rem;
}

/* --- NEW: Style for the "Call Back All" button --- */
.btn-alert-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ef4444; /* Red alert color */
    color: white;
    padding: 0.75rem 1.25rem; /* Slightly larger for better presence */
    border-radius: 10px;
    border: none;
    font-weight: 600; /* Bolder text */
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevent text from wrapping */
}

.btn-alert-action:hover {
    background: #dc2626; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}


.missed-calls-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.missed-call-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.missed-call-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.missed-call-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.missed-call-details {
    flex: 1;
}

.missed-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.missed-call-header h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.missed-call-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.missed-call-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.missed-call-summary {
    margin-bottom: 0.75rem;
}

.missed-call-summary p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.missed-call-value {
    font-weight: 600;
    color: #ef4444;
}

.missed-call-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 120px;
}

.missed-call-actions .btn-primary,
.missed-call-actions .btn-outline {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Updated Pricing Styles */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly wider min-width */
    gap: 2.5rem; /* Increased gap */
    margin-top: 4rem;
    align-items: stretch; /* Ensures cards are the same height */
}

.pricing-tier {
    background: white;
    border-radius: 24px; /* Slightly larger radius */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
}

.pricing-tier:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-tier.premium {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    transform: scale(1.05);
    z-index: 10;
    border: none;
}

.pricing-tier.premium:hover {
    transform: translateY(-12px) scale(1.05);
}


.pricing-tier.premium .tier-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Make call back button full width and centered */
.missed-call-actions .btn-primary.full-width {
    width: 100%;
    justify-content: center;
}


/* Thin scrollbar for mobile dashboard tabs */
@media (max-width: 768px) {
    .dashboard-tabs {
        scrollbar-width: thin;
        scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
    }
    
    .dashboard-tabs::-webkit-scrollbar {
        height: 2px; /* Very thin scrollbar */
    }
    
    .dashboard-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .dashboard-tabs::-webkit-scrollbar-thumb {
        background: rgba(99, 102, 241, 0.3);
        border-radius: 10px;
    }
}


/* Fix for pricing tier badges */
.tier-badge {
    position: absolute;
    top: 5px; /* Moves the badge down from the top edge */
    left: 50%;
    transform: translateX(-50%); /* Only horizontal transform is needed now */
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 5;
}

.tier-header {
    padding: 3rem 2.5rem 2rem; /* Increased padding */
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}


.pricing-tier.premium .tier-badge {
    background: white;
    color: var(--primary-color);
}

.tier-header h3 {
    font-size: 1.6rem; /* Adjusted size */
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.pricing-tier.premium .tier-header h3 {
    color: white;
}

.tier-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    min-height: 45px; /* Ensures consistent alignment */
}

.pricing-tier.premium .tier-header p {
    color: rgba(255, 255, 255, 0.9);
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.tier-price .price {
    font-size: 3rem; /* Adjusted size */
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-tier.premium .tier-price .price {
    color: white;
}

.tier-price .period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-tier.premium .tier-price .period {
    color: rgba(255, 255, 255, 0.8);
}

.tier-price .location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.pricing-tier.premium .tier-price .location {
    color: rgba(255, 255, 255, 0.8);
}

.tier-promo {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.pricing-tier.premium .tier-promo {
    color: rgba(255, 255, 255, 0.9);
}

.tier-features {
    padding: 2rem 2.5rem; /* Increased padding */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Adjusted gap */
    flex-grow: 1; /* This makes the feature list expand to fill space */
}

.tier-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.pricing-tier.premium .tier-feature {
    color: white;
}

.tier-feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.pricing-tier.premium .tier-feature i {
    color: rgba(255, 255, 255, 0.9);
}

.tier-feature.disabled {
    color: var(--text-light);
}

.tier-feature.disabled i {
    color: #cbd5e1;
}

.pricing-tier.premium .tier-feature.disabled {
    color: rgba(255, 255, 255, 0.6);
}

.pricing-tier.premium .tier-feature.disabled i {
    color: rgba(255, 255, 255, 0.6);
}


.tier-cta {
    padding: 2rem 2.5rem 2.5rem; /* Increased padding */
    text-align: center;
    margin-top: auto; /* Pushes the button to the bottom */
}

.tier-cta .btn-primary,
.tier-cta .btn-outline {
    width: 100%;
    justify-content: center;
}

.tier-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-tier.premium .tier-note {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-faq {
    margin-top: 5rem;
    text-align: center;
}

.pricing-faq h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    text-align: left;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive styles for dashboard and pricing */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .pricing-tier.premium {
        transform: none;
    }
    
    .pricing-tier.premium:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .dashboard-panel {
        padding: 1.5rem 1rem;
    }
    
    .metrics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .date-range-selector, .refresh-button {
        width: 100%;
        justify-content: center;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filter {
        width: 100%;
    }
    
    .filter-options {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .filter-option {
        flex: 1;
        min-width: 150px;
    }
    
    .missed-call-item {
        flex-direction: column;
    }
    
    .missed-call-actions {
        flex-direction: row;
        width: 100%;
        margin-top: 1rem;
    }
    
    .missed-call-actions .btn-primary,
    .missed-call-actions .btn-outline {
        flex: 1;
    }
    
    .calls-table {
        overflow-x: auto;
    }
    
    .table-header, .table-row {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .dashboard-tabs {
        overflow-x: auto;
        padding: 0;
    }
    
    .dashboard-tab {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .waterfall-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .patient-info, .revenue-impact {
        width: 100%;
    }
    
    .call-attempts {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .missed-call-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- Enhanced Multi-business Navigation Bar --- */
.business-navbar {
    background: #1f2937; /* A slightly softer dark color */
    padding: 6px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.business-nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.business-nav-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.business-nav-links {
    display: flex;
    gap: 0.5rem; /* Reduced gap for a tighter look */
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 20px; /* Rounded container for the pills */
}

.business-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 14px; /* Padding for the pill shape */
    border-radius: 16px; /* Pill shape */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.business-nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Adjust main navbar position to account for the new, slightly taller bar */
.navbar {
    top: 49px; /* Adjusted height */
}

/* Adjust hero section padding to account for both navbars */
.hero {
    padding-top: 129px; /* 80px (main navbar) + 49px (business navbar) */
}

/* --- Responsive Adjustments for Enhanced Navbar --- */
@media (max-width: 768px) {
    .business-nav-label {
        display: none; /* Hide the label on mobile to save space */
    }
    
    .navbar {
        top: 49px;
    }
    
    /* Adjust mobile menu position */
    .nav-menu {
        top: 129px; /* 80px (main navbar) + 49px (business navbar) */
    }
}

@media (max-width: 480px) {
    .business-nav-links {
        gap: 4px;
    }
    .business-nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Fix for integration showcase arrows on mobile */
@media (max-width: 768px) {
    .integration-visual {
        flex-direction: column;
        gap: 1rem;
    }

    .connection-flow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* Add to your styles.css */
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    width: 40px; /* Increased width to accommodate the wider SVG */
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.small-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px; /* Increased width for the wider SVG */
    height: 18px;
    margin-right: 6px;
}

.small-logo-icon svg {
    width: 100%;
    height: 100%;
}

/* Add a subtle animation to the lightning bolt */
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: translateY(-1px); }
}

.logo-icon svg path:last-child,
.small-logo-icon svg path:last-child {
    animation: flash 1.5s infinite;
}

/* Enhanced lightning bolt animation */
@keyframes bolt-flash {
    0%, 100% { 
        opacity: 1; 
        filter: drop-shadow(0 0 2px rgba(255, 150, 0, 0.8));
    }
    50% { 
        opacity: 1; 
        filter: drop-shadow(0 0 5px rgba(255, 150, 0, 1));
        transform: scale(1.05);
    }
}

.animated-bolt {
    animation: bolt-flash 1.8s infinite;
    transform-origin: center;
}

/* Make the logo icon slightly larger to accommodate the centered design */
.logo-icon {
    width: 44px;
    height: 44px;
}

/* --- Product Showcase Section (Enhanced) --- */
.products-showcase {
    padding: 100px 0;
    background: var(--bg-secondary);
}

/* Grid layout for a balanced 2x2 look */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* This creates the 2x2 grid */
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 900px; /* Constrain the width for a better 2x2 appearance */
    margin-left: auto;
    margin-right: auto;
}

/* The card with 3D tilt and glow preparations */
.product-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative; /* Needed for the spotlight effect */
    overflow: hidden; /* Keeps the spotlight inside the card */
    transition: all 0.2s ease-out; /* Faster, smoother transition */
}

/* Spotlight effect on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(99, 102, 241, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03) perspective(1000px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.product-card:hover::before {
    opacity: 1; /* Show the spotlight on hover */
}

.product-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative; /* Ensure it's above the spotlight */
    z-index: 2;
}

.product-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-link i {
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(4px);
}

/* --- Add this rule to properly size the SVG logo in the product card --- */
.product-icon svg {
    width: 44px;
    height: 44px;
}


/* Responsive adjustments for the product grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* Stack to a single column on tablets/mobile */
    }
}

/* Lock the page when a modal is open */
body.modal-open {
  overflow: hidden;         /* prevent background scroll */
  height: 100vh;            /* iOS-friendly */
}

/* Trap scroll inside the overlay to avoid scroll chaining to the body */
.modal {
  overscroll-behavior: contain;
}

/* Ensure the modal content fits the viewport and can scroll inside */
.modal-content {
  max-height: 90vh;         /* prevent content from exceeding the viewport */
  display: flex;            /* let body grow and scroll */
  flex-direction: column;
}

/* Make the form/video area scrollable */
.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
  overscroll-behavior: contain;      /* avoid scroll chaining to overlay/body */
}

