/* Home page specific styles */

/* Enhanced Navigation for Logo Hero */
nav {
    background: transparent;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px var(--shadow-light);
    padding: 15px 40px;
}

[data-theme="dark"] nav.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

.logo {
    height: 50px;
    width: auto;
    filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

nav.scrolled .logo {
    opacity: 1;
    transform: translateY(0);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

nav.scrolled .nav-right {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hero Section with Logo */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Logo */
.hero-logo {
    width: 360px;
    height: auto;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

[data-theme="dark"] .hero-logo {
    filter: brightness(0) invert(1);
}

@keyframes logoEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.hero h1 span {
    color: var(--accent-orange);
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateY(30px);
}

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

.cta-button {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.7s;
    opacity: 0;
    transform: translateY(30px);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-secondary);
    font-size: 24px;
    opacity: 0.7;
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Services Grid */
.services {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--accent-orange);
    transition: height 0.3s ease;
}

.service-card:nth-child(even)::before {
    background: var(--accent-blue);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-medium);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Capabilities Section */
.capabilities {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.capability-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.capability-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.capability-card:nth-child(even) .capability-number {
    background: var(--accent-blue);
}

.capability-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-white);
}

.capability-card:nth-child(even) .capability-icon {
    color: var(--accent-blue);
}

.capability-card h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Enhanced AI Stats Section - Dashboard Style */
.stats-hero {
    padding: 100px 20px;
    background: var(--bg-tertiary);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-content h2 span {
    color: var(--accent-orange);
}

.hero-content p {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.dashboard-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px var(--shadow-light);
    position: relative;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.dashboard-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-subtitle {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-style: italic;
    margin-left: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.metrics-grid-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.metric-card {
    background: var(--bg-tertiary);
    padding: 18px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-orange);
}

.metric-card:nth-child(2)::before {
    background: var(--accent-blue);
}

.metric-card:nth-child(3)::before {
    background: #2ecc71;
}

.roi-highlight::before {
    background: #9b59b6;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.metric-progress {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.metric-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1.5s ease-out;
}

.metric-card:nth-child(1) .metric-progress-fill {
    background: var(--accent-orange);
    width: 73%;
    animation: progressFill1 2s ease-out;
}

.metric-card:nth-child(2) .metric-progress-fill {
    background: var(--accent-blue);
    width: 40%;
    animation: progressFill2 2s ease-out;
    animation-delay: 0.3s;
}

.metric-card:nth-child(3) .metric-progress-fill {
    background: #2ecc71;
    width: 75%;
    animation: progressFill3 2s ease-out;
    animation-delay: 0.6s;
}

.roi-fill {
    background: #9b59b6;
    width: 85%;
    animation: progressFillROI 2s ease-out;
    animation-delay: 0.9s;
}

.special-fill {
    background: #2ecc71;
    width: 75%;
    animation: progressFill3 2s ease-out;
    animation-delay: 0.6s;
}

@keyframes progressFill1 {
    from { width: 0%; }
    to { width: 73%; }
}

@keyframes progressFill2 {
    from { width: 0%; }
    to { width: 40%; }
}

@keyframes progressFill3 {
    from { width: 0%; }
    to { width: 75%; }
}

@keyframes progressFillROI {
    from { width: 0%; }
    to { width: 85%; }
}

.metric-trend {
    font-size: 0.75em;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-metric {
    grid-column: 1 / -1;
    background: var(--gradient-stats);
    color: white;
    text-align: center;
    position: relative;
    padding: 25px;
}

.main-metric::before {
    background: rgba(255, 255, 255, 0.3);
}

.main-metric .metric-value {
    font-size: 2.5em;
    color: white;
    margin-bottom: 8px;
}

.main-metric .metric-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.main-metric .metric-trend {
    color: rgba(255, 255, 255, 0.8);
    justify-content: center;
}

.speedometer {
    width: 80px;
    height: 40px;
    margin: 15px auto;
    position: relative;
}

.speedometer svg {
    width: 100%;
    height: 100%;
}

.speed-arc {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 3;
}

.speed-indicator {
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 126;
    stroke-dashoffset: 84;
    animation: speedGrow 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes speedGrow {
    to {
        stroke-dashoffset: 42;
    }
}

/* Mobile-friendly styles for AI Opportunity section (stats-hero) */

/* Tablet styles */
@media (max-width: 1024px) {
    .stats-hero {
        padding: 80px 20px;
    }
    
    .hero-grid {
        gap: 40px;
    }
    
    .hero-content h2 {
        font-size: 2.5em;
    }
    
    .dashboard-container {
        padding: 25px;
    }
    
    .metrics-grid-enhanced {
        gap: 12px;
    }
    
    .metric-card {
        padding: 15px;
    }
    
    .metric-value {
        font-size: 1.8em;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .stats-hero {
        padding: 60px 20px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    
    .dashboard-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .dashboard-title {
        font-size: 1em;
    }
    
    .dashboard-subtitle {
        font-size: 0.8em;
        margin-left: 0;
    }
    
    .metrics-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .metric-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .metric-value {
        font-size: 1.6em;
        margin-bottom: 5px;
    }
    
    .metric-label {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .metric-trend {
        font-size: 0.7em;
        margin-top: 6px;
    }
    
    .main-metric {
        padding: 20px;
        border-radius: 10px;
    }
    
    .main-metric .metric-value {
        font-size: 2em;
        margin-bottom: 6px;
    }
    
    .main-metric .metric-label {
        font-size: 0.85em;
        margin-bottom: 12px;
    }
    
    .speedometer {
        width: 60px;
        height: 30px;
        margin: 12px auto;
    }
    
    .secondary-button {
        padding: 12px 30px;
        font-size: 14px;
        border-radius: 25px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .stats-hero {
        padding: 40px 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .dashboard-container {
        padding: 15px;
        border-radius: 12px;
    }
    
    .dashboard-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .dashboard-title {
        font-size: 0.9em;
    }
    
    .dashboard-subtitle {
        font-size: 0.75em;
    }
    
    .metrics-grid-enhanced {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .metric-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .metric-card::before {
        width: 2px;
    }
    
    .metric-value {
        font-size: 1.4em;
        margin-bottom: 4px;
    }
    
    .metric-label {
        font-size: 0.75em;
        margin-bottom: 6px;
    }
    
    .metric-progress {
        height: 3px;
        border-radius: 1.5px;
    }
    
    .metric-trend {
        font-size: 0.65em;
        margin-top: 4px;
    }
    
    .main-metric {
        padding: 15px;
        border-radius: 8px;
    }
    
    .main-metric .metric-value {
        font-size: 1.6em;
        margin-bottom: 4px;
    }
    
    .main-metric .metric-label {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .speedometer {
        width: 50px;
        height: 25px;
        margin: 8px auto;
    }
    
    .secondary-button {
        padding: 10px 25px;
        font-size: 13px;
        border-radius: 20px;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Landscape mobile optimisation */
@media (max-width: 768px) and (orientation: landscape) {
    .stats-hero {
        padding: 40px 20px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 1.8em;
    }
    
    .hero-content p {
        font-size: 0.95em;
    }
    
    .dashboard-container {
        padding: 18px;
    }
    
    .metrics-grid-enhanced {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .main-metric {
        grid-column: 1 / -1;
        padding: 15px;
    }
    
    .main-metric .metric-value {
        font-size: 1.8em;
    }
    
    .speedometer {
        width: 50px;
        height: 25px;
        margin: 8px auto;
    }
}

/* High DPI display optimisation */
@media (min-resolution: 2dppx) {
    .metric-progress {
        height: 4px;
    }
    
    .metric-card::before {
        width: 4px;
    }
    
    .status-dot {
        width: 10px;
        height: 10px;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .metric-card:focus-within {
        outline: 2px solid var(--accent-orange);
        outline-offset: 2px;
    }
    
    .secondary-button:focus {
        outline: 2px solid var(--accent-blue);
        outline-offset: 2px;
    }
    
    /* Ensure touch targets are at least 44px */
    .secondary-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Animation performance optimisation for mobile */
@media (max-width: 768px) {
    .metric-progress-fill {
        animation-duration: 1.5s;
    }
    
    .speed-indicator {
        animation-duration: 1.5s;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .metric-progress-fill,
        .speed-indicator {
            animation: none;
        }
        
        .metric-card {
            transition: none;
        }
    }
}

/* Fix for small screens where text might overflow */
@media (max-width: 320px) {
    .hero-content h2 {
        font-size: 1.6em;
        word-wrap: break-word;
    }
    
    .dashboard-title {
        font-size: 0.85em;
        word-wrap: break-word;
    }
    
    .metric-label {
        font-size: 0.7em;
        line-height: 1.3;
    }
    
    .main-metric .metric-value {
        font-size: 1.4em;
    }
}

/* Legacy stats section styling for compatibility */
.stats {
    padding: 80px 20px;
    background: var(--gradient-stats);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Stats Section 
.stats {
    padding: 80px 20px;
    background: var(--gradient-stats);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-item h3 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--accent-orange);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item p {
    font-size: 1.1em;
    opacity: 0.9;
}*/

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--bg-primary);
    text-align: center;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.contact h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1em;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Chat Components - Home page specific */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e55a2b 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.chat-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.chat-button.active {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--text-primary) 100%);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    color: white;
    animation: pulse 2s infinite;
}

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

.chat-overlay {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-heavy);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.3s ease-out;
}

.chat-overlay.show {
    display: flex;
}

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

.chat-header {
    background: var(--gradient-stats);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.chat-header-content {
    position: relative;
    z-index: 1;
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.chat-header h1 span {
    color: var(--accent-orange);
}

.chat-header p {
    font-size: 12px;
    opacity: 0.9;
    color: #b0c4de;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 11px;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    animation: fadeInUp 0.3s ease-out;
}

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

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message.bot .message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.message.user .message-content {
    background: var(--gradient-stats);
    color: white;
    border-bottom-right-radius: 4px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    color: white;
    flex-shrink: 0;
}

.bot .avatar {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e55a2b 100%);
}

.user .avatar {
    background: var(--gradient-stats);
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-action {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.chat-input-container {
    padding: 15px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.chat-input {
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.chat-input input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.send-button {
    padding: 10px 16px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 12px;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.3);
}

.send-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(255, 107, 53, 0.4);
}

/* Chat form styling */
.form-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 18px;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-container h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 16px;
}

.form-container input, .form-container select, .form-container textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: inherit;
}

.form-container input:focus, .form-container select:focus, .form-container textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-container button {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.3);
}

.form-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(255, 107, 53, 0.4);
}

/* Resource cards */
.resource-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-orange);
    transition: height 0.3s ease;
}

.resource-card:nth-child(even)::before {
    background: var(--accent-blue);
}

.resource-card:hover::before {
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 13px;
}

.resource-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.resource-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--accent-orange);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 75%;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite ease-in-out;
}

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

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

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Home-specific responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .hero-logo {
        width: 280px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        padding: 40px 20px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }

    .chat-overlay {
        bottom: 110px;
        right: 15px;
        left: 15px;
        width: auto;
        height: 500px;
    }

    .chat-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

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

    .quick-actions {
        flex-direction: column;
    }

    nav, nav.scrolled {
        padding: 15px 20px;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 20px;
    }
}