/* Factory AI - Custom Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.2s;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.header-glass {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
.dark .header-glass {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero gradient background */
.hero-gradient {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.25), transparent),
                radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.15), transparent),
                radial-gradient(ellipse 60% 40% at 0% 50%, rgba(99, 102, 241, 0.1), transparent);
}
.dark .hero-gradient {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.2), transparent),
                radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.1), transparent);
}

/* Full hero - dark futuristic with particles (always dark for impact) */
section#hero-particles.hero-full,
#hero-particles.hero-full,
.hero-full {
    background: linear-gradient(180deg, #0f0f1a 0%, #0a0a12 50%, #050508 100%) !important;
    color: #e2e8f0;
}
#hero-particles h1, #hero-particles .hero-content-inner {
    color: inherit;
}
#hero-particles h1 span:first-child {
    color: #f8fafc !important;
}

.hero-mesh-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.2), transparent 50%),
        radial-gradient(ellipse 80% 60% at 100% 20%, rgba(14, 165, 233, 0.15), transparent 45%),
        radial-gradient(ellipse 80% 60% at 0% 80%, rgba(99, 102, 241, 0.1), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: hero-orb-float 20s ease-in-out infinite;
}
.hero-glow-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}
.hero-glow-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.25);
    top: 40%;
    right: 5%;
    animation-delay: -7s;
}
.hero-glow-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(99, 102, 241, 0.2);
    bottom: 10%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes hero-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-title-glow {
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3), 0 0 80px rgba(14, 165, 233, 0.2);
}

.hero-visual svg .hero-float-1 { animation: hero-float 6s ease-in-out infinite; }
.hero-visual svg .hero-float-2 { animation: hero-float 6s ease-in-out infinite 2s; }
.hero-visual svg .hero-float-3 { animation: hero-float 5s ease-in-out infinite 1s; }
.hero-visual svg .hero-float-4 { animation: hero-float 5s ease-in-out infinite 3s; }

@keyframes hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(8px, -8px) scale(1.2); opacity: 1; }
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.dark .glass-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.5);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Testimonial slider */
.testimonial-slider { overflow: hidden; }

/* Client logos slider - 3 highlighted, others fade, auto-rotate */
.client-logos-slider {
    position: relative;
    max-width: 100%;
}
.client-logos-slider::before,
.client-logos-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}
.client-logos-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.client-logos-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}
.dark .client-logos-slider::before {
    background: linear-gradient(to right, rgba(15,23,42,0.98) 0%, transparent 100%);
}
.dark .client-logos-slider::after {
    background: linear-gradient(to left, rgba(15,23,42,0.98) 0%, transparent 100%);
}
.client-logos-track {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.client-logo-item {
    opacity: 0.4;
    transform: scale(0.92);
}
.client-logo-item.highlight {
    opacity: 1;
    transform: scale(1);
}

/* Page header - inner pages with image + particles */
.page-header {
    position: relative;
}
.page-header-bg {
    transition: transform 0.3s ease;
}
.page-header:hover .page-header-bg {
    transform: scale(1.02);
}
/* Section imagery */
.section-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}
.dark .section-image {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}
