/* Custom EasyContract Styles */

/* Font Family */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom Colors */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --text-color: #1f2937;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom button hover effects */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-200 transform hover:scale-105 hover:shadow-lg;
}

.btn-secondary {
    @apply border-2 border-blue-600 text-blue-600 px-6 py-3 rounded-lg font-semibold transition-all duration-200 transform hover:scale-105 hover:bg-blue-600 hover:text-white;
}

/* Custom gradients */
.gradient-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    @apply transition-all duration-300 transform hover:-translate-y-2 hover:shadow-xl;
}

/* Mobile menu toggle */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

.mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading animation */
.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: black; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 black, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 black, .5em 0 0 black; }
}

/* Custom focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive text scaling */
@media (max-width: 640px) {
    .text-hero {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-hero {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 1025px) {
    .text-hero {
        font-size: 4.5rem;
        line-height: 1.1;
    }
}

/* Custom shadow */
.shadow-custom {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Testimonial card styles */
.testimonial-card {
    @apply bg-white p-6 rounded-xl shadow-lg border border-gray-100 transition-all duration-300 hover:shadow-xl hover:border-blue-200;
}

/* Stats counter animation */
.stat-number {
    @apply text-3xl font-bold text-blue-600;
}

/* Newsletter form styles */
.newsletter-form input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-l-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.newsletter-form button {
    @apply bg-blue-600 text-white px-6 py-3 rounded-r-lg hover:bg-blue-700 transition-colors duration-200;
}

/* Feature icon styles */
.feature-icon {
    @apply h-12 w-12 rounded-lg flex items-center justify-center text-white text-xl;
}

/* Progress bar */
.progress-bar {
    @apply w-full bg-gray-200 rounded-full h-2;
}

.progress-fill {
    @apply bg-blue-600 h-2 rounded-full transition-all duration-1000 ease-out;
}

/* Pricing card styles */
.pricing-card {
    @apply bg-white p-8 rounded-2xl shadow-lg border border-gray-200 transition-all duration-300 hover:shadow-xl hover:border-blue-300;
}

.pricing-card.featured {
    @apply border-blue-500 bg-blue-50 transform scale-105;
}

/* CTA section background */
.cta-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

/* Timeline styles */
.timeline-item::before {
    content: '';
    @apply absolute left-4 top-0 bottom-0 w-0.5 bg-blue-200;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    @apply absolute left-2 top-6 w-4 h-4 bg-blue-600 rounded-full border-4 border-white shadow-lg;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
