/*
Theme Name: OtoTheme
Theme URI: https://otolab.com
Author: Otolab
Author URI: https://otolab.com
Description: A modern WordPress theme for Otolab - Lab Grown Workforce. Features dynamic content management, theme options, and responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ototheme
Tags: business, ai, automation, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, flexible-header, theme-options
*/

/* Base Styles */
/* CSS Variables are dynamically set via wp_head in functions.php */
:root {
    --color-cream: #F1EEE7;
    --color-hicream: #E3DACC;
    --color-primary: #1E3A5F;
    --color-text-primary: #141412;
    --color-text-secondary: #5A5A5A;
    --color-accent: #2E5C8A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: var(--color-text-primary);
    line-height: 1.6;
}

/* Premium Gradient Background */
.bg-gradient-premium {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

/* Text Premium Styles */
.text-premium {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Premium Styles */
.btn-premium {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* Animated Text Wrapper - 3D Rotation Support */
.animated-text-wrapper {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.animated-text {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.animated-text.active {
    z-index: 2;
}

.animated-text.exiting {
    z-index: 1;
}

/* Product Card Animations */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotateY(360deg);
    transition: transform 0.6s ease;
}

.product-icon {
    transition: transform 0.3s ease;
}

/* Section animations */
.section-premium {
    opacity: 1;
}

/* Premium transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Flow Arrow Animation */
.flow-arrow {
    animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

/* Sparkle Animation */
.final-cta img[src*="sparkle"] {
    animation: sparkleFloat 3s ease-in-out infinite;
}

.final-cta img[src*="sparkle"]:nth-child(2) {
    animation-delay: 1s;
}

.final-cta img[src*="sparkle"]:nth-child(3) {
    animation-delay: 2s;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Rocket Animation */
.final-cta img[src*="rocket"] {
    animation: rocketLaunch 3s ease-in-out infinite;
}

@keyframes rocketLaunch {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Quote Mark Subtle Fade */
.testimonial-card img[src*="quote"] {
    animation: quoteFade 4s ease-in-out infinite;
}

@keyframes quoteFade {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.15;
    }
}

/* Hero Grid Pattern - Professional B2B Style */
.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(227, 218, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 218, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

/* Grid Pattern Fade Effect */
.hero-grid-pattern .hero-grid-overlay {
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Enhanced Hero Title */
.hero-title {
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Subtitle Refinement */
.hero-subtitle {
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Professional Button Styling */
.btn-premium {
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-premium:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Hero Pattern Parallax Effect */
@media (prefers-reduced-motion: no-preference) {
    .hero-pattern-overlay {
        will-change: transform;
    }
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Landing Page Styles - Shared by Chatbot Automation & Document Processing */
.landing-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(227, 218, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 218, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    opacity: 0.3;
}

.platform-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.platform-icon:hover {
    transform: translateY(-10px);
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.use-case-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.use-case-card h3 {
    color: var(--color-text-primary);
}

.use-case-card ul li {
    font-size: 15px;
}

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    padding: 80px 0;
    position: relative;
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-image-wrapper {
    position: relative;
    animation: floating 4s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.use-case-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkmark-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Document Flow Specific Styles */
.document-flow-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.flow-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.flow-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 200px;
}

.center-processor {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.flow-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.flow-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.flow-item-right {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.flow-item-right:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.flow-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 16px;
}

/* Chatbot Platform Circle Container */
.platform-circle-container {
    position: relative;
    width: 800px;
    height: 450px;
    margin: 80px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

.infinity-left-arc {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 3px solid rgba(30, 58, 95, 0.1);
    border-radius: 50%;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(30, 58, 95, 0.05);
}

.infinity-right-arc {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);
    width: 280px;
    height: 280px;
    border: 3px solid rgba(30, 58, 95, 0.1);
    border-radius: 50%;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(30, 58, 95, 0.05);
}

.infinity-left-arc::after,
.infinity-right-arc::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 3px;
    background: rgba(30, 58, 95, 0.1);
    transform: translateY(-50%);
}

.infinity-left-arc::after {
    right: -15px;
}

.infinity-right-arc::before {
    left: -15px;
}

.channel-item {
    position: absolute;
    z-index: 5;
    transition: all 0.3s ease;
}

.crm-item {
    position: absolute;
    z-index: 5;
    transition: all 0.3s ease;
}

.channel-item:hover .platform-icon,
.crm-item:hover .platform-icon {
    transform: scale(1.2);
}

.connection-line {
    display: none;
}

/* Chatbot Platform Positioning */
.platform-circle-container .channel-item:nth-child(4) { left: 140px; top: 30px; transform: translateX(-50%); }
.platform-circle-container .channel-item:nth-child(5) { left: 50px; top: 95px; transform: translateX(-50%); }
.platform-circle-container .channel-item:nth-child(6) { left: 20px; top: 180px; transform: translateX(-50%); }
.platform-circle-container .channel-item:nth-child(7) { left: 50px; top: 265px; transform: translateX(-50%); }
.platform-circle-container .channel-item:nth-child(8) { left: 140px; top: 330px; transform: translateX(-50%); }
.platform-circle-container .channel-item:nth-child(9) { left: 260px; top: 180px; transform: translateX(-50%); }
.platform-circle-container .crm-item:nth-child(10) { left: 660px; top: 30px; transform: translateX(-50%); }
.platform-circle-container .crm-item:nth-child(11) { left: 750px; top: 95px; transform: translateX(-50%); }
.platform-circle-container .crm-item:nth-child(12) { left: 780px; top: 180px; transform: translateX(-50%); }
.platform-circle-container .crm-item:nth-child(13) { left: 750px; top: 265px; transform: translateX(-50%); }
.platform-circle-container .crm-item:nth-child(14) { left: 660px; top: 330px; transform: translateX(-50%); }
.platform-circle-container .crm-item:nth-child(15) { left: 540px; top: 180px; transform: translateX(-50%); }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-enhanced {
        min-height: auto;
        py-32;
    }

    .blob-float-1,
    .blob-float-2 {
        opacity: 0.1;
    }

    /* Document Flow Mobile */
    .document-flow-container {
        flex-direction: column;
        gap: 30px;
    }

    .flow-center {
        flex: 0 0 auto;
    }

    .center-processor {
        width: 100px;
        height: 100px;
    }

    .center-processor svg {
        width: 40px;
        height: 40px;
    }

    .flow-column {
        width: 100%;
    }

    .flow-item, .flow-item-right {
        width: 100%;
    }

    .flow-item:hover, .flow-item-right:hover {
        transform: translateY(-5px);
    }

    /* Chatbot Platform Mobile */
    .platform-circle-container {
        width: 350px;
        height: 550px;
        flex-direction: column;
    }

    .infinity-left-arc,
    .infinity-right-arc {
        display: none;
    }

    .center-avatar {
        width: 80px;
        height: 80px;
        top: 50%;
    }

    .center-avatar svg {
        width: 32px;
        height: 32px;
    }

    .platform-circle-container .channel-item:nth-child(4) { top: 8%; left: 10%; transform: none; }
    .platform-circle-container .channel-item:nth-child(5) { top: 22%; left: 10%; transform: none; }
    .platform-circle-container .channel-item:nth-child(6) { top: 36%; left: 10%; transform: none; }
    .platform-circle-container .channel-item:nth-child(7) { top: 64%; left: 10%; transform: none; }
    .platform-circle-container .channel-item:nth-child(8) { top: 78%; left: 10%; transform: none; }
    .platform-circle-container .channel-item:nth-child(9) { top: 92%; left: 10%; transform: none; }
    .platform-circle-container .crm-item:nth-child(10) { top: 8%; left: auto; right: 10%; transform: none; }
    .platform-circle-container .crm-item:nth-child(11) { top: 22%; left: auto; right: 10%; transform: none; }
    .platform-circle-container .crm-item:nth-child(12) { top: 36%; left: auto; right: 10%; transform: none; }
    .platform-circle-container .crm-item:nth-child(13) { top: 64%; left: auto; right: 10%; transform: none; }
    .platform-circle-container .crm-item:nth-child(14) { top: 78%; left: auto; right: 10%; transform: none; }
    .platform-circle-container .crm-item:nth-child(15) { top: 92%; left: auto; right: 10%; transform: none; }

    .platform-icon {
        width: 50px;
        height: 50px;
    }

    .platform-icon svg {
        width: 24px;
        height: 24px;
    }
}
