/* Custom Styles for Yarn AI Marketing Website */

/* CSS Variables */
:root {
    --yarn-primary: #1a3b5c;
    --yarn-secondary: #2c5f8d;
    --yarn-accent: #4a90e2;
    --yarn-teal: #00bfa5;
    --yarn-purple: #7c3aed;
    --yarn-green: #10b981;
    --yarn-orange: #f59e0b;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Delays */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Vibrating Border Animation for BI Card */
@keyframes pulse-border {
    0%, 100% {
        border-color: rgb(192, 132, 252);
        box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.4);
    }
    50% {
        border-color: rgb(147, 51, 234);
        box-shadow: 0 0 0 6px rgba(147, 51, 234, 0.2);
    }
}

.animate-pulse-border {
    animation: pulse-border 2s ease-in-out infinite;
}

/* Gradient Background Animation */
.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

/* Custom Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--yarn-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Navbar Transition */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .mobile-menu-enter {
        transform: translateX(100%);
        opacity: 0;
    }
    
    .mobile-menu-enter-active {
        transition: all 0.3s ease;
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pricing Toggle Animation */
.pricing-toggle {
    transition: all 0.3s ease;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

/* Timeline Connector Line */
.timeline-line {
    background: linear-gradient(to bottom, #c084fc, #60a5fa, #818cf8);
}

/* ROI Calculator Input Styling */
.roi-input {
    transition: all 0.3s ease;
}

.roi-input:focus {
    transform: translateY(-2px);
}

/* Modal Backdrop Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-backdrop {
    animation: fadeIn 0.3s ease;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--yarn-accent);
    outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-6xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .text-5xl {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .text-4xl {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .text-xl {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    /* Reduce padding on mobile */
    .p-8 {
        padding: 1.5rem;
    }
    
    .p-6 {
        padding: 1.25rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-16 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Mobile-specific utilities */
    .mobile-compact {
        padding: 1rem;
    }
    
    .mobile-tight {
        gap: 0.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--yarn-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--yarn-secondary);
}

/* Badge Pulse Animation */
@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.badge-pulse {
    animation: badge-pulse 2s infinite;
}

/* Gradient Text Animation */
@keyframes gradient-text {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text-animated {
    background-size: 200% auto;
    animation: gradient-text 3s ease infinite;
}