/* Enhanced Responsive Design & Modern Elements */

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .gradient-bg {
        padding: 3rem 1rem;
    }
    
    .gradient-bg h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .gradient-bg p {
        font-size: 1.1rem;
    }
    
    /* Pain Points Mobile */
    .grid-cols-1 {
        gap: 1.5rem;
    }
    
    .card-hover {
        margin-bottom: 1rem;
    }
    
    /* Process Section Mobile */
    .grid-cols-1 > div {
        margin-bottom: 2rem;
    }
    
    /* Social Proof Mobile */
    .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* CTA Buttons Mobile */
    .pulse-animation {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Navigation Mobile */
    nav .hidden {
        display: none;
    }
    
    /* Cards Mobile */
    .bg-white.rounded-lg {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .gradient-bg h1 {
        font-size: 3rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations */
.card-hover {
    animation: fadeInUp 0.6s ease-out;
}

.bg-red-50 {
    animation: slideInLeft 0.8s ease-out;
}

.pulse-animation {
    animation: bounceIn 0.8s ease-out;
}

/* Enhanced Hover Effects */
.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.orange-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}

/* Enhanced Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.orange-gradient {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    position: relative;
    overflow: hidden;
}

.orange-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Typography */
.text-gradient {
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced Card Designs */
.card-hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.card-hover:hover::before {
    left: 100%;
}

/* Enhanced Navigation */
nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

nav a:hover {
    color: #3b82f6;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Enhanced Buttons */
.pulse-animation {
    position: relative;
    overflow: hidden;
}

.pulse-animation::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Social Proof */
.text-yellow-500 {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Enhanced Chart Container */
#roiChart {
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced FAQ Section */
.bg-gray-50 {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bg-gray-50:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Loading Animation for Chart */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#roiChart {
    animation: fadeIn 1s ease-in-out;
}

/* Enhanced Mobile Experience */
@media (max-width: 640px) {
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-xl {
        font-size: 1.1rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    .grid-cols-1 > div {
        margin-bottom: 1rem;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced Print Styles */
@media print {
    nav, footer, .pulse-animation {
        display: none;
    }
    
    .gradient-bg, .orange-gradient {
        background: white !important;
        color: black !important;
    }
    
    .card-hover {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bg-gray-50 {
        background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    }
    
    .bg-white {
        background: #374151;
        color: #f9fafb;
    }
    
    .text-gray-900 {
        color: #f9fafb;
    }
    
    .text-gray-600 {
        color: #d1d5db;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}