
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section with Particles Animation */
.hero {
    position: relative;
    height: 760px!important;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #60a5fa  50%, #93c5fd 75%, #dbeafe 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        /* height: 100vh; */
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

.particles::before,
.particles::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: move 30s linear infinite;
    transform: translate(-50%, -50%);
}

.particles::after {
    background-size: 80px 80px;
    animation: move 40s linear infinite reverse;
    opacity: 0.5;
}

@keyframes move {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.group:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Demo Section */
.chat-message {
    margin-bottom: 1rem;
}

.chat-message.ai {
    text-align: left;
}

.chat-message.user {
    text-align: right;
}

.chat-message.user .bg-blue-50 {
    background-color: #3b82f6 !important;
    color: white;
}

.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Accordion */
.accordion-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-content {
    max-height: 0;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Navigation */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-content .p-6 {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Demo Chat Styling */
#demo-chat {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

#demo-chat::-webkit-scrollbar {
    width: 8px;
}

#demo-chat::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

#demo-chat::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

#demo-chat::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Stats Section */
.stats-section .fade-in:nth-child(1) { animation-delay: 0.1s; }
.stats-section .fade-in:nth-child(2) { animation-delay: 0.2s; }
.stats-section .fade-in:nth-child(3) { animation-delay: 0.3s; }
.stats-section .fade-in:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

/* Footer Improvements */
footer a:hover {
    color: #60a5fa;
    transition: color 0.3s ease;
}

/* Enhanced Shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Performance Optimizations */
.feature-card,
.step-number,
.accordion-item {
    will-change: transform;
}

/* Print Styles */
@media print {
    .particles,
    nav,
    footer {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        page-break-after: always;
    }
}

/* Fixed Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Fixed Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.15s ease-in-out;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Fixed Mobile Navigation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Fixed Dashboard Sidebar */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
    }
}
/* Dashboard Styles */
.dashboard-sidebar {
    background: linear-gradient(135deg, #1a1423 0%, #2d2438 100%);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 50;
}

.dashboard-content {
    margin-left: 16rem;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    width: calc(100% - 16rem);
}

.dashboard-content.no-sidebar {
    margin-left: 0;
    width: 100%;
}

.dashboard-sidebar.hidden {
    transform: translateX(-100%);
}

.dashboard-nav-item {
    transition: all 0.2s ease;
}

.dashboard-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto; /* Allow horizontal scrolling if content overflows */
}

.stats-card {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    max-width: 80%;
}

.chat-message.ai {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    margin-right: auto;
}

.chat-message.user {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    margin-left: auto;
}

.typing-indicator {
    display: flex;
    align-items: center;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 280px;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .dashboard-section {
        padding: 1rem !important;
    }
    
    .dashboard-section h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .dashboard-section h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .dashboard-section h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Stats Cards */
    .grid.lg\\:grid-cols-4.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .stats-card {
        padding: 1rem !important;
    }
    
    .stats-card .text-3xl {
        font-size: 1.5rem !important;
    }
    
    /* Charts */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .relative[style*="height: 300px"] {
        height: 200px !important;
    }
    
    /* Recent Activity */
    .space-y-4 > div {
        padding: 0.75rem !important;
    }
    
    .flex.items-center.p-4.bg-gray-50.rounded-lg {
        padding: 0.75rem !important;
    }
    
    .w-10.h-10 {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    /* Forms */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Tables */
    .overflow-x-auto {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .min-w-full {
        min-width: 100% !important;
    }
    
    /* Buttons */
    .bg-blue-500 {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Tabs */
    .tab-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }
    
    .tab-button {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Pricing Cards */
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .pricing-card {
        padding: 1rem !important;
    }
    
    .pricing-card .price {
        font-size: 1.5rem !important;
    }
    
    /* Payment Methods */
    .payment-method-card {
        padding: 0.75rem !important;
    }
    
    /* Chat Widget */
    #chat-box {
        width: 90vw !important;
        max-width: 350px !important;
        right: 5vw !important;
    }
    
    #chat-messages {
        height: 250px !important;
    }
    
    /* Mobile Menu Button */
    button.md\\:hidden.fixed.top-4.left-4.z-50 {
        top: 1rem !important;
        left: 1rem !important;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .dashboard-content {
        padding: 0.5rem !important;
    }
    
    .dashboard-section {
        padding: 0.5rem !important;
    }
    
    .dashboard-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .stats-card {
        padding: 0.75rem !important;
    }
    
    .stats-card .text-3xl {
        font-size: 1.25rem !important;
    }
    
    .stats-card .text-sm {
        font-size: 0.75rem !important;
    }
    
    .relative[style*="height: 300px"] {
        height: 150px !important;
    }
    
    #chat-box {
        width: 95vw !important;
        right: 2.5vw !important;
    }
    
    #chat-messages {
        height: 200px !important;
    }
}