/* Custom styles for FulfillmentPlus */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles */
a:focus,
button:focus {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Process flow line animation */
@keyframes flowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.flow-line {
    animation: flowPulse 2s ease-in-out infinite;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Mobile menu transitions */
[x-cloak] {
    display: none !important;
}

/* Form input styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
}

/* Icon box styles */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Process step connector */
.step-connector {
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Dark section pattern overlay */
.pattern-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ========================================
   Growth Animation - Hero Section
   ======================================== */

/* Bar chart growth animation */
@keyframes growBar {
    0%, 100% {
        transform: scaleY(0);
    }
    15%, 85% {
        transform: scaleY(1);
    }
}

.growth-bar {
    transform-origin: bottom center;
    transform-box: fill-box;
    animation: growBar 4s ease-out infinite;
}

.bar-1 { animation-delay: 0s; }
.bar-2 { animation-delay: 0.15s; }
.bar-3 { animation-delay: 0.3s; }
.bar-4 { animation-delay: 0.45s; }

/* Trend line drawing animation */
@keyframes drawLine {
    0%, 100% {
        stroke-dasharray: 300;
        stroke-dashoffset: 300;
    }
    15%, 85% {
        stroke-dashoffset: 0;
    }
}

.trend-line {
    stroke-dasharray: 300;
    animation: drawLine 4s ease-in-out infinite;
}

/* Trend arrow fade */
@keyframes fadeArrow {
    0%, 10% {
        opacity: 0;
        transform: translateY(10px);
    }
    25%, 75% {
        opacity: 1;
        transform: translateY(0);
    }
    90%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.trend-arrow {
    animation: fadeArrow 4s ease-in-out infinite;
}

/* Dot pulse animation */
@keyframes pulseDot {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    20%, 80% {
        opacity: 1;
        transform: scale(1);
    }
}

.trend-dot {
    animation: pulseDot 4s ease-in-out infinite;
}

.dot-1 { animation-delay: 0.2s; }
.dot-2 { animation-delay: 0.4s; }
.dot-3 { animation-delay: 0.6s; }
.dot-4 { animation-delay: 0.8s; }

/* Outer ring animation */
@keyframes drawRing {
    0%, 100% {
        stroke-dashoffset: 880;
    }
    20%, 80% {
        stroke-dashoffset: 0;
    }
}

.outer-ring {
    animation: drawRing 4s ease-in-out infinite;
}

/* Floating elements animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 1s; }

/* Center arrow pulse */
@keyframes pulseArrow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

.center-arrow {
    transform-origin: center;
    animation: pulseArrow 3s ease-in-out infinite;
}

/* ========================================
   End of Section Statement
   ======================================== */
.section-statement {
    max-width: 48%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.75;
}

.section-statement.with-bg {
    background-color: #f9fafb;
    border-bottom: 4px solid #3D9F92;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
}
