/* 
 * Chatbot365.ai Premium Styles
 * Theme: Dark, Neon, Futuristic
 */

:root {
    /* Colors */
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --primary: #3b82f6;
    /* Blue */
    --primary-glow: #3b82f6aa;
    --secondary: #8b5cf6;
    /* Purple */
    --accent: #06b6d4;
    /* Cyan */

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --gradient-main: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-text: linear-gradient(to right, #60a5fa, #c084fc, #22d3ee);

    /* Spacing */
    --gutter: 20px;
    --container-width: 1200px;

    /* Effects */
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0ibm9uZSIvPjxmaWx0ZXIgaWQ9Im4iPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9InRyYW5zcGFyZW50Ii8+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

.ambient-light {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -2;
    animation: floatLight 10s infinite alternate;
}

@keyframes floatLight {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 50px);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Helper Classes */
.mt-2 {
    margin-top: 2rem;
}

.full-width {
    width: 100%;
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn.sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 0;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(96, 165, 250, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(96, 165, 250, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-orb {
    width: 300px;
    height: 300px;
    position: relative;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent), var(--secondary));
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.7;
    animation: breathe 5s infinite alternate;
}

@keyframes breathe {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 250px;
    height: 250px;
    border-color: rgba(6, 182, 212, 0.3);
    animation: spin 10s linear infinite;
}

.ring-2 {
    width: 350px;
    height: 350px;
    border-color: rgba(139, 92, 246, 0.2);
    animation: spin 15s linear infinite reverse;
}

.ring-3 {
    width: 500px;
    height: 500px;
    border-color: rgba(59, 130, 246, 0.1);
    border-style: dashed;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: floatCard 6s infinite ease-in-out;
}

.c1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.c2 {
    bottom: 10%;
    right: 0;
    animation-delay: 2s;
}

.c3 {
    top: 10%;
    right: -30px;
    animation-delay: 1s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-card i {
    color: var(--accent);
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.demo-frame {
    margin-top: 3rem;
    width: 100%;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #0f0f12;
    display: flex;
    flex-direction: column;
}

.frame-header {
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

.btns {
    display: flex;
    gap: 0.5rem;
}

.btn-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-dot.red {
    background: #ef4444;
}

.btn-dot.yellow {
    background: #f59e0b;
}

.btn-dot.green {
    background: #10b981;
}

.address-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.frame-content {
    flex: 1;
    background: white;
    /* Ensure expected bg for iframe */
}

.frame-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Specific styling for the demo frame wrapper which shares class glass-card but has specific needs */
.demo-frame.glass-card {
    padding: 0;
    /* Override padding */
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.icon-box.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.features-grid h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.features-grid p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Solutions Section */
.solutions-section {
    padding: 6rem 0;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-list {
    list-style: none;
    margin: 2rem 0;
}

.solution-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.solution-list i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.solution-list h4 {
    margin-bottom: 0.3rem;
}

.solution-list p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Code Window */
.code-window {
    padding: 0;
    overflow: hidden;
    font-family: 'Fira Code', monospace;
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.window-body {
    padding: 1.5rem;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.kwd {
    color: #c678dd;
}

.var {
    color: #e06c75;
}

.cls {
    color: #e5c07b;
}

.prop {
    color: #d19a66;
}

.str {
    color: #98c379;
}

.bool {
    color: #56b6c2;
}

.func {
    color: #61afef;
}

.comment {
    color: #5c6370;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details .item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--primary);
    width: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.socials a:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .demo-frame {
        height: 85vh;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile for now */
    .mobile-toggle {
        display: block;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.feedback {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.client-info h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}