/* Custom styles */
:root {
    --primary-color-1: #22b0f7;
    --primary-color-2: #2281fa;
    --dark-bg: #0a0914;
    --dark-bg-2: #100f1c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #22b0f7 0%, #2281fa 25%, #50109e 50%, #2281fa 75%, #22b0f7 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #e0e0e0;
    cursor: none;
}

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

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color-1), var(--primary-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(16, 15, 28, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.glass-card:hover {
    background: rgba(34, 176, 247, 0.1);
    box-shadow: 0 8px 40px rgba(34, 129, 250, 0.15);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.scroll-animation {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Improved Navbar */
#header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-container {
    background: rgba(16, 15, 28, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(90deg, var(--primary-color-1), var(--primary-color-2));
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: white;
}
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}


/* Futuristic Value Card Styles */
.value-card {
    background: var(--dark-bg-2);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.value-card::before {
    content: '';
    position: absolute;
    left: -1px;
    top: -1px;
    background: linear-gradient(45deg, var(--primary-color-1), var(--primary-color-2), #50109e, var(--primary-color-1));
    background-size: 400%;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    z-index: 0;
    border-radius: 1rem; /* Matches parent */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    animation: spin 8s linear infinite;
}
.value-card:hover::before {
    opacity: 1;
}
@keyframes spin {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
.value-card .description {
    height: 0;
    opacity: 0;
    transition: height 0.4s ease-out, opacity 0.4s ease-out 0.1s;
}
.value-card:hover .description {
    height: 40px; /* Adjust as needed */
    opacity: 1;
}

/* Enhanced AI Mockup Styles */
.mockup-console {
    background: linear-gradient(135deg, rgba(10, 9, 20, 0.95) 0%, rgba(16, 15, 28, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(34, 176, 247, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}
.mockup-console::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color-1), var(--primary-color-2), #50109e, var(--primary-color-1));
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
}
@keyframes borderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
.mockup-sidebar {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(16, 15, 28, 0.4) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}
.mockup-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(34, 176, 247, 0.3) 50%, transparent 100%);
}
/* Enhanced Module Buttons */
.module-btn {
    background: transparent;
    width: 100%;
    text-align: right;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.module-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 176, 247, 0.1), transparent);
    transition: left 0.6s ease;
}
.module-btn:hover {
    background: rgba(34, 176, 247, 0.08);
    transform: translateX(-3px);
    box-shadow: 3px 0 10px rgba(34, 176, 247, 0.2);
}
.module-btn:hover::before {
    left: 100%;
}
.module-btn.active {
    color: white;
    background: linear-gradient(90deg, rgba(34, 129, 250, 0.2), rgba(34, 176, 247, 0.15));
    transform: translateX(-5px);
    box-shadow: 5px 0 15px rgba(34, 176, 247, 0.3);
}
.module-btn.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color-1), var(--primary-color-2));
    box-shadow: 0 0 10px var(--primary-color-1);
}
.module-btn i {
    transition: all 0.3s ease;
}
.module-btn:hover i {
    color: var(--primary-color-1);
    transform: scale(1.1);
}
.module-btn.active i {
    color: var(--primary-color-1);
    filter: drop-shadow(0 0 5px var(--primary-color-1));
}
/* Enhanced Panel Styles */
.mockup-main-panel {
    flex: 2;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(16, 15, 28, 0.05) 100%);
    position: relative;
}
.mockup-main-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 176, 247, 0.3), transparent);
}
.mockup-side-panel {
    flex: 1;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(16, 15, 28, 0.15) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}
.mockup-side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(34, 176, 247, 0.2) 50%, transparent 100%);
}
/* Enhanced Panel Content Animations */
.panel-content {
    display: none;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    position: relative;
}
.panel-content.active {
    display: block;
}
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
        filter: blur(5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

/* Panel Headers */
.panel-header {
    background: linear-gradient(90deg, rgba(34, 176, 247, 0.1), transparent);
    border-left: 3px solid var(--primary-color-1);
    padding: 1rem;
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 0 8px 8px 0;
}
.panel-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.panel-header i {
    color: var(--primary-color-1);
    filter: drop-shadow(0 0 5px var(--primary-color-1));
}
/* Enhanced Chat Log */
.chat-log {
    height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}
.chat-log::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}
.chat-log::-webkit-scrollbar {
    width: 6px;
}
.chat-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.chat-log::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color-1), var(--primary-color-2));
    border-radius: 3px;
}
.chat-log::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-1);
}
/* Enhanced Chat Bubbles */
.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: bubbleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}
@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.user-message {
    background: linear-gradient(135deg, #2a293e 0%, #3a3952 100%);
    color: #e8e8f0;
    border-bottom-right-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(42, 41, 62, 0.3);
}
.ai-message {
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color-1) 100%);
    color: white;
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 20px rgba(34, 176, 247, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0.1;
    filter: blur(10px);
    z-index: -1;
}
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9ca3af;
    animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: -1.0s; }
.typing-indicator span:nth-child(3) { animation-delay: -0.8s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}
.social-post {
    background-color: #1a192a;
}
.status-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
}

/* Enhanced CTA Button */
.cta-button {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color-1), var(--primary-color-2));
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(34, 176, 247, 0.3), 0 0 0 0 rgba(34, 176, 247, 0.4);
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    border-radius: inherit;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(34, 176, 247, 0.4), 0 0 20px rgba(34, 176, 247, 0.6);
    background: linear-gradient(135deg, #1ea5e8, #1f6fd9);
}
.cta-button:hover::before {
    opacity: 1;
}
.cta-button:hover::after {
    width: 120px;
    height: 120px;
}
.cta-button:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}
.cta-button .btn-icon {
    transition: transform 0.3s ease;
}
.cta-button:hover .btn-icon {
    transform: translateX(4px);
}
.cta-button .btn-text {
    position: relative;
    z-index: 1;
}

/* Pulse animation for the button */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 25px rgba(34, 176, 247, 0.3), 0 0 0 0 rgba(34, 176, 247, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(34, 176, 247, 0.4), 0 0 15px rgba(34, 176, 247, 0.6);
    }
    100% {
        box-shadow: 0 8px 25px rgba(34, 176, 247, 0.3), 0 0 0 0 rgba(34, 176, 247, 0.4);
    }
}
.cta-button.pulse {
    animation: pulse-glow 2s infinite;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color-1);
    box-shadow: 0 0 20px var(--primary-color-1), 0 0 30px var(--primary-color-1);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out, opacity 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}
body:hover #custom-cursor {
    opacity: 0.7;
}
a:hover ~ #custom-cursor, button:hover ~ #custom-cursor, .glass-card:hover ~ #custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
}
.service-card-container {
    perspective: 1000px;
}

/* Advanced Visual Effects for AI Mockup */
.glow-effect {
    box-shadow: 0 0 20px rgba(34, 176, 247, 0.3);
    animation: gentleGlow 2s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
    from { box-shadow: 0 0 20px rgba(34, 176, 247, 0.3); }
    to { box-shadow: 0 0 30px rgba(34, 176, 247, 0.5); }
}

/* Professional Service Showcase */
#about-animation-container {
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 176, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 129, 250, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 9, 20, 0.95) 0%, rgba(16, 15, 28, 0.8) 100%);
    border: 1px solid rgba(34, 176, 247, 0.2);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

#about-animation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(34, 176, 247, 0.5) 25%, 
        rgba(34, 129, 250, 0.8) 50%, 
        rgba(34, 176, 247, 0.5) 75%, 
        transparent 100%);
    animation: borderScan 4s linear infinite;
}

@keyframes borderScan {
    0% { transform: translateX(-100%); opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.service-showcase {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mini-console {
    width: 100%;
    max-width: 420px;
    background: 
        linear-gradient(135deg, rgba(16, 15, 28, 0.95) 0%, rgba(10, 9, 20, 0.98) 100%);
    border: 2px solid rgba(34, 176, 247, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(34, 176, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mini-console:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(34, 176, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.console-header {
    background: 
        linear-gradient(135deg, rgba(34, 176, 247, 0.15) 0%, rgba(34, 129, 250, 0.08) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.console-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(34, 176, 247, 0.03) 50%, 
        transparent 100%);
    animation: headerShimmer 3s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.console-dots {
    display: flex;
    gap: 0.5rem;
    z-index: 1;
    position: relative;
}

.console-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color-1);
    opacity: 0.7;
    animation: consolePulse 2.5s infinite;
    box-shadow: 0 0 10px rgba(34, 176, 247, 0.3);
}

.console-dots span:nth-child(1) { 
    animation-delay: 0s; 
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.console-dots span:nth-child(2) { 
    animation-delay: 0.4s; 
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.console-dots span:nth-child(3) { 
    animation-delay: 0.8s; 
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

@keyframes consolePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.console-title {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.025em;
    z-index: 1;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.console-body {
    padding: 2rem;
    height: 300px;
    position: relative;
    background: 
        radial-gradient(circle at 30% 30%, rgba(34, 176, 247, 0.05) 0%, transparent 50%);
}

.service-preview {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-preview.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: 
        linear-gradient(135deg, var(--primary-color-1) 0%, var(--primary-color-2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 
        0 10px 30px rgba(34, 176, 247, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: iconFloat 3s ease-in-out infinite;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: iconShine 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes iconShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-content h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.025em;
}

/* Call Simulation */
.call-simulation {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(34, 176, 247, 0.2);
}

.call-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.ai-response {
    background: linear-gradient(135deg, rgba(34, 176, 247, 0.1), rgba(34, 129, 250, 0.05));
    padding: 0.75rem;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 0.875rem;
    border-left: 3px solid var(--primary-color-1);
}

/* Chat Simulation */
.chat-simulation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-chat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 80%;
}

.chat-bubble.user {
    background: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: linear-gradient(135deg, var(--primary-color-1), var(--primary-color-2));
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Social Simulation */
.social-simulation {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(34, 176, 247, 0.2);
}

.post-status {
    color: #10b981;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-status::before {
    content: '✓';
    background: #10b981;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.engagement-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Analytics Simulation */
.analytics-simulation {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(34, 176, 247, 0.2);
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric {
    text-align: center;
    background: rgba(34, 176, 247, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
}

.metric .value {
    display: block;
    color: var(--primary-color-1);
    font-size: 1.5rem;
    font-weight: bold;
}

.metric .label {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Enhanced Mobile Responsiveness for Service Showcase */
@media (max-width: 768px) {
    .service-showcase {
        padding: 1rem;
    }
    
    .mini-console {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .console-header {
        padding: 1rem;
    }
    
    .console-title {
        font-size: 0.9rem;
    }
    
    .console-dots span {
        width: 12px;
        height: 12px;
    }
    
    .console-body {
        padding: 1.5rem;
        height: 280px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-content h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Adjust simulation containers */
    .call-simulation,
    .social-simulation,
    .analytics-simulation {
        padding: 0.875rem;
    }
    
    .chat-bubble {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .metrics {
        gap: 0.75rem;
    }
    
    .metric {
        padding: 0.625rem;
    }
    
    .metric .value {
        font-size: 1.25rem;
    }
    
    .ai-response,
    .call-status,
    .post-status {
        font-size: 0.8rem;
    }
    
    .engagement-stats {
        font-size: 0.8rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    #about-animation-container {
        height: 400px;
    }
    
    .service-showcase {
        padding: 0.75rem;
    }
    
    .console-header {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .console-title {
        font-size: 0.8rem;
    }
    
    .console-dots {
        gap: 0.375rem;
    }
    
    .console-dots span {
        width: 10px;
        height: 10px;
    }
    
    .console-body {
        padding: 1.25rem;
        height: 260px;
    }
    
    .service-preview {
        gap: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    .service-content h4 {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .call-simulation,
    .social-simulation,
    .analytics-simulation {
        padding: 0.75rem;
    }
    
    .mini-chat {
        gap: 0.375rem;
    }
    
    .chat-bubble {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        border-radius: 10px;
    }
    
    .metrics {
        gap: 0.5rem;
    }
    
    .metric {
        padding: 0.5rem;
    }
    
    .metric .value {
        font-size: 1.125rem;
    }
    
    .metric .label {
        font-size: 0.7rem;
    }
    
    .ai-response {
        padding: 0.625rem;
        font-size: 0.75rem;
    }
    
    .call-status,
    .post-status {
        font-size: 0.75rem;
    }
    
    .engagement-stats {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
}

/* Touch device enhancements */
@media (hover: none) and (pointer: coarse) {
    .mini-console:hover {
        transform: none;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(34, 176, 247, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .service-icon {
        animation: none;
    }
    
    .service-icon:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Particle Animation Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(34, 176, 247, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Dashboard Full Width Enhancement */
.dashboard-full-width .mockup-main-panel {
    flex: 1;
    max-width: 100%;
}

/* Improved Dashboard Layout */
#dashboard-main.active {
    width: 100%;
}

#dashboard-main .grid {
    gap: 1.5rem;
}

/* Enhanced Dashboard Cards */
#dashboard-main .bg-gradient-to-br {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#dashboard-main .bg-gradient-to-br:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1200px) {
    .mockup-console {
        flex-direction: column;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }
    
    .mockup-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        order: 1;
    }
    
    .mockup-main-panel {
        order: 2;
        width: 100%;
    }
    
    .mockup-side-panel {
        order: 3;
        width: 100%;
        display: flex !important;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    /* Force prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mockup-console {
        min-height: auto;
        margin: 0;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mockup-sidebar {
        padding: 1rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .module-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        text-align: center;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .module-btn .flex {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
    }
    
    .module-btn .text-right {
        text-align: center;
    }
    
    .module-btn i {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .module-btn .font-medium {
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .module-btn .text-xs {
        font-size: 0.6rem;
        opacity: 0.8;
        text-align: center;
    }
    
    .mockup-main-panel, .mockup-side-panel {
        padding: 1rem 0.75rem;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .panel-header {
        margin: -1rem -0.75rem 1rem -0.75rem;
        padding: 0.75rem;
    }
    
    .panel-header h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .panel-header p {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }
    
    .chat-log {
        height: 280px;
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .chat-bubble {
        max-width: 100%;
        padding: 8px 12px;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }
    
    /* Dashboard Mobile */
    #dashboard-main .grid {
        gap: 0.75rem;
    }
    
    #dashboard-main .bg-gradient-to-br {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    #dashboard-main .text-2xl {
        font-size: 1.1rem;
    }
    
    /* Side Panel Mobile */
    .mockup-side-panel .bg-gradient-to-r {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }
    
    .mockup-side-panel .font-bold.text-xl {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mockup-console {
        border-radius: 8px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .mockup-sidebar {
        padding: 0.5rem;
    }
    
    .module-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.65rem;
        min-height: 50px;
    }
    
    .module-btn i {
        font-size: 0.85rem;
    }
    
    .module-btn .font-medium {
        font-size: 0.6rem;
    }
    
    .mockup-main-panel, .mockup-side-panel {
        padding: 0.75rem 0.5rem;
    }
    
    .panel-header {
        margin: -0.75rem -0.5rem 0.75rem -0.5rem;
        padding: 0.5rem;
    }
    
    .panel-header h4 {
        font-size: 0.8rem;
    }
    
    .chat-log {
        height: 220px;
        padding: 0.375rem;
    }
    
    .chat-bubble {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    /* Dashboard Ultra Mobile */
    #dashboard-main .grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-2.xl\\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    #dashboard-main .bg-gradient-to-br {
        padding: 0.5rem;
        min-height: 60px;
        text-align: center;
    }
    
    #dashboard-main .text-2xl {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mockup-console {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .panel-header h4 {
        font-size: 1rem;
    }
    
    /* Enhanced touch targets for mobile */
    .module-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent text selection on mobile */
    .mockup-console * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection only in content areas */
    .panel-content p, .panel-content span, .panel-content div:not(.module-btn) {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}