/* ========================================
   Biz4Solutions - AI Services Website
   A modern, dark-themed single page site
======================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Deep tech aesthetic */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.6);
    --bg-card-hover: rgba(35, 35, 50, 0.8);
    --blur-amount: 12px;
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    --accent-primary: #00f5d4;
    --accent-secondary: #7b61ff;
    --accent-tertiary: #ff6b6b;
    --accent-gradient: linear-gradient(135deg, #00f5d4 0%, #7b61ff 100%);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 245, 212, 0.3);
    
    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-glow: 0 0 60px rgba(0, 245, 212, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 100px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--accent-gradient);
    color: var(--bg-primary) !important;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Parallax Elements */
.parallax-layer {
    position: absolute;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-slow {
    transform: translateY(calc(var(--scroll-y, 0) * 0.3));
}

.parallax-medium {
    transform: translateY(calc(var(--scroll-y, 0) * 0.5));
}

.parallax-fast {
    transform: translateY(calc(var(--scroll-y, 0) * 0.7));
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.3) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
    animation: float 12s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
    margin: 0 auto 0 10%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 100px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.trust-badges {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.trust-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.badge-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.badge-item {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Visual - AI Brain Animation */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-brain {
    position: relative;
    width: 300px;
    height: 300px;
}

.brain-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    border-color: rgba(0, 245, 212, 0.3);
    animation-duration: 25s;
}

.ring-2 {
    inset: 30px;
    border-color: rgba(123, 97, 255, 0.3);
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    inset: 60px;
    border-color: rgba(0, 245, 212, 0.2);
    animation-duration: 15s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brain-core {
    position: absolute;
    inset: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-svg {
    width: 100%;
    height: 100%;
    animation: pulse-core 3s ease-in-out infinite;
}

@keyframes pulse-core {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    animation: node-pulse 2s ease-in-out infinite;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 25%; right: 10%; animation-delay: 0.3s; }
.node-3 { bottom: 25%; right: 10%; animation-delay: 0.6s; }
.node-4 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.9s; }
.node-5 { bottom: 25%; left: 10%; animation-delay: 1.2s; }
.node-6 { top: 25%; left: 10%; animation-delay: 1.5s; }

@keyframes node-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 245, 212, 0.5); }
    50% { transform: scale(1.3); box-shadow: 0 0 30px rgba(0, 245, 212, 0.8); }
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 212, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 212, 0.25); }
}

/* ========================================
   Audience Section
======================================== */
.audience {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.audience-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.audience-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.audience-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.audience-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 12px;
}

.audience-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.audience-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.audience-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: var(--section-padding) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    border-color: rgba(0, 245, 212, 0.3);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 12px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.service-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 16px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}

.icon-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.3) 0%, transparent 70%);
    border-radius: 16px;
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover .icon-glow {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ========================================
   Projects Section
======================================== */
.projects {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    padding: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.project-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    box-shadow: var(--shadow-glow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-industry {
    padding: 6px 14px;
    background: rgba(123, 97, 255, 0.15);
    color: var(--accent-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
}

.project-impact {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9375rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.project-problem,
.project-solution {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.project-problem strong,
.project-solution strong {
    color: var(--text-primary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.project-tech span {
    padding: 4px 12px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--accent-primary);
}

.project-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.result {
    text-align: center;
}

.result-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.result-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Interactive Case Study Cards */
.project-card.interactive {
    cursor: pointer;
    position: relative;
}

.project-card.interactive .project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.project-card.interactive .project-results {
    grid-template-columns: repeat(2, 1fr);
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 8px;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.expand-btn:hover {
    background: rgba(0, 245, 212, 0.2);
    border-color: var(--accent-primary);
}

.expand-btn svg {
    transition: transform 0.3s ease;
}

.project-card.expanded .expand-btn svg {
    transform: rotate(90deg);
}

.project-card.expanded .expand-btn span {
    display: none;
}

.project-card.expanded .expand-btn::before {
    content: 'Hide Details';
}

/* Case Details - Hidden by default */
.case-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.project-card.expanded .case-details {
    max-height: 800px;
    opacity: 1;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.case-section {
    margin-bottom: 20px;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-section h4 {
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.case-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.case-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.case-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Expanded card styles */
.project-card.expanded {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.15);
}

@media (max-width: 768px) {
    .case-details {
        padding-top: 16px;
    }
    
    .case-section h4 {
        font-size: 0.95rem;
    }
    
    .case-section p,
    .case-section ul li {
        font-size: 0.85rem;
    }
}

/* ========================================
   Process Section
======================================== */
.process {
    padding: var(--section-padding) 0;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateX(-20px);
}

.process-step.revealed {
    opacity: 1;
    transform: translateX(0);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}

.step-content {
    padding-top: 16px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step-content > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.step-details {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-details li {
    padding: 6px 14px;
    background: rgba(0, 245, 212, 0.08);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--accent-primary);
}

/* ========================================
   Tech Stack Section
======================================== */
.tech-stack {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stack-category {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(20px);
}

.stack-category.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stack-category h3 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-items span {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.stack-items span:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--accent-primary);
}

/* ========================================
   Why Us Section
======================================== */
.why-us {
    padding: var(--section-padding) 0;
}

.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.diff-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.diff-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.diff-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
}

.diff-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15) 0%, rgba(123, 97, 255, 0.15) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.diff-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.diff-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.diff-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Trust Section
======================================== */
.trust {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.trust-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trust-header {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.trust-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.trust-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    line-height: 1.3;
    overflow: visible;
}

.trust-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.industries-served {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
}

.industries-served.revealed {
    opacity: 1;
    transform: translateY(0);
}

.industry-tag {
    padding: 10px 20px;
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.2);
    border-radius: 100px;
    font-size: 0.9375rem;
    color: var(--accent-secondary);
    transition: var(--transition-fast);
}

.industry-tag:hover {
    background: rgba(123, 97, 255, 0.2);
    transform: translateY(-2px);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
}

.stats-row.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition-base);
}

.stat-item:hover {
    background: var(--bg-card);
    transform: translateY(-3px);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Testimonial Carousel */
.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, rgba(123, 97, 255, 0.05) 100%);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 20px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s ease;
    text-align: center;
    padding: 0 20px;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.testimonial-slide.prev {
    transform: translateX(-30px);
}

.testimonial-slide blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 24px;
    max-height: 180px;
    overflow-y: auto;
}

.testimonial-slide blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.4;
    display: block;
    line-height: 1;
    margin-bottom: -10px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-weight: 700;
    border-radius: 50%;
    font-size: 0.875rem;
}

.author-info {
    text-align: left;
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Carousel Controls */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.testimonial-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.testimonial-btn svg {
    width: 18px;
    height: 18px;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.testimonial-dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background: var(--accent-secondary);
}

/* Trust Badges & Certifications */
.trust-badges-section {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 50px !important;
    margin-bottom: 50px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.badge-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 25px 15px !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    transition: var(--transition-base);
    text-decoration: none !important;
    min-height: 120px;
}

.badge-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary) !important;
    box-shadow: 0 15px 40px rgba(0, 245, 212, 0.15);
    animation: glow-pulse 2s ease-in-out infinite;
}

.badge-item img {
    height: 50px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
}

.badge-item span {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 992px) {
    .trust-badges-section {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .trust-badges-section {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .badge-item {
        padding: 18px 12px !important;
        min-height: 100px;
    }
    
    .badge-item img {
        height: 40px !important;
    }
    
    .badge-item span {
        font-size: 0.7rem !important;
    }
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.1) 0%, transparent 60%);
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(20px);
}

.cta-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 16px;
}

.cta-content > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Options Layout */
.cta-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cta-card {
    padding: 30px;
    border-radius: 16px;
    transition: var(--transition-base);
}

.cta-primary-card {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.cta-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 16px;
    color: var(--bg-primary);
}

.cta-primary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-primary-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.calendly-btn {
    margin-bottom: 16px;
}

.cta-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Secondary CTA Options */
.cta-secondary-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cta-secondary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    text-align: center;
}

.cta-secondary-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.15);
}

.cta-secondary-card .cta-card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    background: rgba(0, 245, 212, 0.15);
    color: var(--accent-primary);
}

.cta-secondary-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cta-secondary-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .cta-secondary-options {
        grid-template-columns: 1fr;
    }
    
    .cta-primary-card {
        padding: 25px 20px;
    }
    
    .cta-secondary-card {
        padding: 20px;
    }
}

.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Footer
======================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-img {
    height: 50px;
}

.footer-brand > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 300px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        margin: 0 auto;
        max-width: 600px;
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .badge-logos {
        justify-content: center;
    }
    
    .audience-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .differentiators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Tablet Portrait Breakpoint */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 2.25rem);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 24px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid,
    .projects-grid,
    .differentiators-grid {
        grid-template-columns: 1fr;
    }
    
    .stack-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 24px;
    }
    
    .process-timeline::before {
        left: 24px;
    }
    
    .process-step {
        gap: 24px;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        padding: 32px 20px;
    }
    
    .cta-secondary-options {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

/* ========================================
   Animations & Reveal Effects
======================================== */
[data-reveal] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered animations */
.audience-card:nth-child(1) { transition-delay: 0s; }
.audience-card:nth-child(2) { transition-delay: 0.1s; }
.audience-card:nth-child(3) { transition-delay: 0.2s; }
.audience-card:nth-child(4) { transition-delay: 0.3s; }
.audience-card:nth-child(5) { transition-delay: 0.4s; }

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }

.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.15s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.45s; }
.project-card:nth-child(5) { transition-delay: 0.6s; }
.project-card:nth-child(6) { transition-delay: 0.75s; }

.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.45s; }
.process-step:nth-child(5) { transition-delay: 0.6s; }

.stack-category:nth-child(1) { transition-delay: 0s; }
.stack-category:nth-child(2) { transition-delay: 0.1s; }
.stack-category:nth-child(3) { transition-delay: 0.2s; }
.stack-category:nth-child(4) { transition-delay: 0.3s; }

.diff-card:nth-child(1) { transition-delay: 0s; }
.diff-card:nth-child(2) { transition-delay: 0.1s; }
.diff-card:nth-child(3) { transition-delay: 0.2s; }
.diff-card:nth-child(4) { transition-delay: 0.3s; }
.diff-card:nth-child(5) { transition-delay: 0.4s; }
.diff-card:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   AI Chatbot Widget
======================================== */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-body);
}

/* Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.4);
    transition: var(--transition-base);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 245, 212, 0.5);
}

.chatbot-toggle svg {
    color: var(--bg-primary);
    transition: var(--transition-base);
}

.chatbot-toggle .close-icon {
    display: none;
}

.chatbot-widget.open .chatbot-toggle .chat-icon {
    display: none;
}

.chatbot-widget.open .chatbot-toggle .close-icon {
    display: block;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--accent-tertiary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.chatbot-widget.open .chat-badge,
.chatbot-widget.interacted .chat-badge {
    display: none;
}

/* Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-height: 550px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.chatbot-widget.open .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    overflow: hidden;
    border: 2px solid var(--accent-primary);
}

.chatbot-favicon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chatbot-header h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.75rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chatbot-minimize {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
}

.chatbot-minimize:hover {
    color: var(--text-primary);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 250px;
    max-height: 300px;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--bg-primary);
    font-weight: 600;
    overflow: hidden;
    border: 1px solid var(--accent-primary);
}

.message-avatar img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.chat-message.user .message-avatar {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-content {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-bottom-right-radius: 4px;
}

.message-content a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.chat-message.user .message-content a {
    color: var(--bg-primary);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    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.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Quick Replies */
.chatbot-quick-replies {
    padding: 0 20px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply {
    padding: 8px 14px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-reply:hover {
    background: rgba(0, 245, 212, 0.2);
    border-color: var(--accent-primary);
}

/* Input Form */
.chatbot-input-form {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chatbot-input-form input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.chatbot-input-form input:focus {
    border-color: var(--accent-primary);
}

.chatbot-input-form input::placeholder {
    color: var(--text-muted);
}

.chatbot-input-form button {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chatbot-input-form button:hover {
    transform: scale(1.05);
}

/* Lead Capture Form */
.chatbot-lead-form {
    padding: 20px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.chatbot-lead-form p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.chatbot-lead-form input,
.chatbot-lead-form textarea {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.chatbot-lead-form input:focus,
.chatbot-lead-form textarea:focus {
    border-color: var(--accent-primary);
}

.chatbot-lead-form textarea {
    resize: none;
    height: 60px;
}

.chatbot-lead-form button {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 8px;
}

.chatbot-lead-form button:hover {
    transform: translateY(-2px);
}

.chatbot-lead-form .skip-btn {
    background: transparent;
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.8rem;
}

.chatbot-lead-form .skip-btn:hover {
    color: var(--text-primary);
    transform: none;
}

/* Transcript Email Option */
.chatbot-transcript-option {
    padding: 10px 20px;
    background: rgba(0, 245, 212, 0.05);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chatbot-transcript-option span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chatbot-transcript-option button {
    padding: 6px 12px;
    background: rgba(0, 245, 212, 0.15);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.chatbot-transcript-option button:hover {
    background: rgba(0, 245, 212, 0.25);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .chatbot-window {
        width: calc(100vw - 32px);
        max-height: 70vh;
        right: 0;
        bottom: 70px;
    }
    
    .chatbot-toggle {
        width: 54px;
        height: 54px;
    }
}

