/* styles.css - Hyphen Technology Landing Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066ff;
    --secondary: #001a33;
    --accent: #00d4ff;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gray: #8892b0;
    --bg-primary: #000000;
    --bg-secondary: #000011;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.02);
    --nav-bg: rgba(0, 0, 0, 0.9);
}

/* Light Theme Variables */
[data-theme="light"] {
    --primary: #0052cc;
    --secondary: #deebff;
    --accent: #0066cc;
    --dark: #ffffff;
    --light: #000000;
    --gray: #5e6c84;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f5f7;
    --text-primary: #172b4d;
    --text-secondary: #5e6c84;
    --border-color: rgba(0, 0, 0, 0.15);
    --card-bg: rgba(0, 0, 0, 0.03);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

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

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Switch Integration */
.nav-actions .switch {
    margin-right: 0.5rem;
}

[data-theme="light"] .slider {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .slider {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--light);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--light);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 2rem;
    max-width: 1200px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(20deg);
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

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

.section-tag {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light), var(--gray));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    /* background: linear-gradient(135deg, var(--primary), var(--accent)); */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    /* box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3); */
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Clients Section */
.clients {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #000 0%, #001 100%);
    position: relative;
    overflow: hidden;
}

.clients-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Digital Twin Layout */
.digital-twin-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

/* Dashboard Panels */
.dashboard-panel {
    background: rgba(0, 10, 30, 0.6);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
    animation: panelGlow 3s ease-in-out infinite;
}

@keyframes panelGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 102, 255, 0.25);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.panel-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.active {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

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

.refresh-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dashboard Cards */
.dashboard-card {
    background: rgba(0, 20, 50, 0.4);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(0, 102, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.card-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-value {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.value-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.value-unit {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 1s ease;
    animation: shimmer 2s ease-in-out infinite;
}

.progress-fill.success {
    background: linear-gradient(90deg, #00ff00, #00cc00);
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Trend Indicator */
.trend-indicator {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    font-weight: 600;
}

.trend-indicator.up {
    color: #00ff00;
}

.trend-indicator.down {
    color: #ff4444;
}

/* Mini Chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    margin-top: 0.5rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent), rgba(0, 102, 255, 0.3));
    border-radius: 2px;
    animation: chartPulse 3s ease-in-out infinite;
}

.chart-bar:nth-child(1) { animation-delay: 0s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.4s; }
.chart-bar:nth-child(4) { animation-delay: 0.6s; }
.chart-bar:nth-child(5) { animation-delay: 0.8s; }
.chart-bar:nth-child(6) { animation-delay: 1s; }

@keyframes chartPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Real-time Log */
.realtime-log {
    max-height: 150px;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    font-size: 0.75rem;
    animation: logFadeIn 0.5s ease;
}

@keyframes logFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-time {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.log-text {
    color: var(--gray);
}

/* Zone Status */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.zone-item {
    padding: 0.5rem;
    text-align: center;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid;
}

.zone-item.active {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.zone-item.warning {
    background: rgba(255, 165, 0, 0.1);
    border-color: #ffa500;
    color: #ffa500;
}

.zone-item.idle {
    background: rgba(128, 128, 128, 0.1);
    border-color: #808080;
    color: #808080;
}

/* Energy Consumption Bars */
.energy-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 60px;
    margin-top: 0.5rem;
}

.energy-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 102, 255, 0.8), rgba(0, 212, 255, 0.4));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar-fill.active {
    background: linear-gradient(to top, var(--accent), rgba(0, 255, 100, 0.4));
}

.bar-label {
    font-size: 0.65rem;
    color: var(--gray);
}

/* Alert Status */
.alert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.alert-item.success {
    background: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
}

.alert-item.info {
    background: rgba(0, 102, 255, 0.1);
    border-left: 3px solid var(--primary);
}

.alert-icon {
    font-size: 1rem;
}

.alert-text {
    color: var(--gray);
}

/* Main Viewport (iframe container) */
.main-viewport {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.3);
}

.clients-grid {
    display: block;
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 12px;
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.logo-placeholder {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray);
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: #000;
    position: relative;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.feature-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 102, 255, 0.05);
}

.feature-check {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
    margin-left: 10px;
}

.feature-text p {
    color: var(--gray);
    line-height: 1.6;
}

.feature-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-content {
    text-align: center;
    z-index: 2;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }

    75% {
        transform: translate(-30px, -20px) rotate(270deg);
    }
}

/* Case Studies Section */
.case-studies {
    padding: 8rem 2rem;
    background: #000;
}

.case-studies-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.case-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.case-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
    will-change: transform;
    backface-visibility: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    filter: brightness(0.9) contrast(1.1);
    opacity: 0;
    animation: fadeInImage 0.6s ease-out forwards;
    transform-origin: center center;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.05) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

.case-image:hover img {
    transform: scale(1.08) translateZ(0);
    filter: brightness(1) contrast(1.2);
}

/* Overlay effect for better text readability */
.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-image::after {
    opacity: 1;
}

.case-content {
    padding: 2rem;
}

.case-industry {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.case-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Process Section */
.process {
    padding: 8rem 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.3);
    animation: pulse-number 2s ease-in-out infinite;
}

@keyframes pulse-number {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.process-line {
    display: none;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.process-step p {
    color: var(--gray);
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), transparent);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technology Stack Section */
.tech-stack {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, #000 0%, #001 100%);
}

.tech-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-category:hover {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.tech-category h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--gray);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--light);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq {
    padding: 8rem 2rem;
    background: #000;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    margin-top: 4rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 2rem 2rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Contact Form Section */
.contact-section {
    padding: 8rem 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info p {
    color: var(--gray);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, var(--primary), var(--accent)); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-item h4 {
    color: var(--light);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--gray);
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 102, 255, 0.05);
}

.contact-form select option {
    background: var(--dark);
    color: var(--light);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 10px;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 102, 255, 0.4);
}

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray);
    line-height: 1.7;
}

.footer-section h4 {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitch {
    0%, 100% {
        text-shadow:
            2px 2px 0 var(--accent),
            -2px -2px 0 var(--primary);
    }

    25% {
        text-shadow:
            -2px 2px 0 var(--accent),
            2px -2px 0 var(--primary);
    }

    50% {
        text-shadow:
            2px -2px 0 var(--accent),
            -2px 2px 0 var(--primary);
    }

    75% {
        text-shadow:
            -2px -2px 0 var(--accent),
            2px 2px 0 var(--primary);
    }
}

@keyframes ripple {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes float-particle {
    from {
        transform: translateY(100vh) translateX(0);
    }

    to {
        transform: translateY(-100vh) translateX(100px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 优化导航栏布局 */
    .nav-container {
        padding: 0.8rem 1rem;
        max-width: 100%;
    }
    
    .logo {
        font-size: 1.4rem;
        font-weight: 700;
    }
    
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        transform: scale(0.8);
    }

    .nav-actions {
        gap: 0.3rem;
        align-items: center;
    }
    
    /* Switch按钮优化 */
    .nav-actions .switch {
        margin-right: 0.2rem;
        margin-left: 0.2rem;
        transform: scale(0.7);
    }
    
    /* Get Started按钮优化 */
    .contact-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
        font-weight: 500;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

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

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-image {
        height: 160px;
    }

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

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

    /* Digital Twin Dashboard 响应式 */
    .digital-twin-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-panel {
        order: 2;
    }
    
    .main-viewport {
        order: 1;
    }
    
    .clients-grid {
        height: 400px;
    }

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

    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* 专门针对iPhone 14等小屏幕设备的优化 */
@media (max-width: 390px) {
    .nav-container {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .nav-actions {
        gap: 0.2rem;
    }
    
    .nav-actions .switch {
        transform: scale(0.6);
        margin: 0;
    }
    
    .contact-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    .hamburger {
        transform: scale(0.7);
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }
}

/* Theme Transition Animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Light theme specific adjustments */
[data-theme="light"] .hero {
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .grid-bg {
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .services {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="light"] .service-card:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 212, 255, 0.04));
    border-color: rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .section-title {
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .nav-links a {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-links a:hover {
    color: var(--text-primary);
}

[data-theme="light"] .hamburger span {
    background: var(--text-primary);
}

[data-theme="light"] nav {
    background: var(--nav-bg) !important;
}

[data-theme="light"] .contact-btn {
    color: var(--light);
}

[data-theme="light"] .btn-primary {
    color: var(--light);
}

[data-theme="light"] .btn-secondary {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .features {
    background: var(--bg-primary);
}

[data-theme="light"] .case-studies {
    background: var(--bg-primary);
}

[data-theme="light"] .case-image::after {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 102, 204, 0.1));
}

[data-theme="light"] .tech-stack {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="light"] .faq {
    background: var(--bg-primary);
}

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

[data-theme="light"] .section-description {
    color: var(--text-secondary);
}

[data-theme="light"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="light"] .case-card h3,
[data-theme="light"] .feature-text h3,
[data-theme="light"] .process-step h3,
[data-theme="light"] .faq-question h3 {
    color: var(--text-primary);
}

[data-theme="light"] .case-card p,
[data-theme="light"] .feature-text p,
[data-theme="light"] .process-step p,
[data-theme="light"] .faq-answer p {
    color: var(--text-secondary);
}

/* ======================
   CHAT BOT STYLES
   ====================== */

.chat-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

/* Chat Toggle Button */
.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.chat-icon {
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.chat-toggle:hover .chat-icon {
    transform: scale(1.1);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    border: 2px solid white;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Chat Header */
.chat-header {
    padding: 1.5rem 1.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-icon {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.avatar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.online-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    border: 2px solid white;
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.chat-info h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.chat-minimize {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.chat-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-primary);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Message Styles */
.message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease-out;
}

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

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.message-avatar .avatar-icon {
    width: 100%;
    height: 100%;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.message-avatar .avatar-icon img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 1px;
}

.user-message .message-avatar .avatar-icon {
    background: linear-gradient(135deg, var(--gray), var(--text-secondary));
    color: white;
}

.message-content {
    max-width: 75%;
}

.message-bubble {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px 18px 18px 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    border-radius: 18px 18px 4px 18px;
    color: white;
}

.message-bubble p {
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.user-message .message-time {
    text-align: right;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    animation: messageSlideIn 0.3s ease-out 0.2s both;
}

.quick-action {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-action:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Chat Input */
.chat-input-container {
    padding: 1rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent);
    background: rgba(0, 102, 255, 0.05);
}

#chatInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

#chatInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.chat-send {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Typing Indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.typing-indicator {
    display: flex;
    gap: 2px;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite both;
}

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

@keyframes typingDot {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .chat-window {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .message-bubble {
    background: rgba(0, 0, 0, 0.05);
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80%;
    max-height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
}

.video-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.video-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: var(--card-bg);
    color: var(--text-primary);
    transform: scale(1.1);
}

.video-modal-body {
    padding: 0;
    height: calc(100% - 70px);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Light Theme Video Modal */
[data-theme="light"] .video-modal-content {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .video-modal-header {
    background: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        height: 70%;
        max-height: 400px;
    }
    
    .video-modal-header {
        padding: 0.8rem 1rem;
    }
    
    .video-modal-header h3 {
        font-size: 1rem;
    }
}

[data-theme="light"] .chat-input-wrapper:focus-within {
    background: rgba(0, 82, 204, 0.05);
}

[data-theme="light"] .avatar-icon {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .avatar-icon img {
    background: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-bot {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-toggle {
        width: 55px;
        height: 55px;
    }
    
    .chat-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        bottom: 75px;
        right: -10px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-action {
        text-align: center;
    }
}