/* Custom CSS for USBizGuru Landing Page */

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

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

/* Custom gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Feature card enhanced styling */
.feature-card {
    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 ease;
}

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

/* Stats counter styling */
.stat-number {
    background: linear-gradient(45deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* Community achievement boxes */
.achievement-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.achievement-box:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

/* CTA button enhancements */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::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 ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

/* Testimonial styling */
.testimonial {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #4F46E5;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #4F46E5;
    opacity: 0.3;
    font-family: serif;
}

/* Success story cards */
.success-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.success-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-5px);
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4F46E5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button responsiveness fixes */
.btn-responsive {
    white-space: nowrap;
    text-align: center;
    min-width: fit-content;
}

@media (max-width: 640px) {
    .btn-responsive {
        white-space: normal;
        min-width: 280px;
        text-align: center;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Mobile responsiveness enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Button improvements for mobile */
    .rounded-full {
        white-space: nowrap;
        text-align: center;
    }
    
    /* Financial logos mobile adjustments */
    .animate-scroll-left {
        animation-duration: 20s;
    }
    
    /* Logo image optimizations for mobile */
    .animate-scroll-left img {
        max-height: 6rem;
        width: auto;
    }
}

/* Update index.html spacing */
.animate-scroll-left {
    gap: 4rem;
}

/* Loading animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Intersection observer classes */
.observe-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.observe-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Success metrics styling */
.metric-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    transform: scale(1.05);
}

/* Footer enhancements */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #4F46E5 !important;
    transform: translateX(5px);
}

/* Social media icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4F46E5, #7C3AED);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #3730a3, #6d28d9);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gradient-to-r,
    .bg-gradient-to-br,
    .gradient-primary,
    .gradient-secondary {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Logo scrolling animation - Seamless infinite scroll */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll-left {
    animation: scroll-left 40s linear infinite;
    width: max-content;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Ensure smooth scrolling on all devices */
@media (prefers-reduced-motion: reduce) {
    .animate-scroll-left {
        animation: none;
        transform: none;
    }
}

/* Mobile optimization for scroll animation */
@media (max-width: 768px) {
    .animate-scroll-left {
        animation-duration: 30s;
        gap: 0.5rem;
    }
    
    .animate-scroll-left img {
        height: 2rem;
        width: auto;
    }
}

/* Enhanced flashing animations */
@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    25%, 75% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 30px rgba(239, 68, 68, 0.6);
    }
}

.animate-flash {
    animation: flash 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Limited time offer styling */
.limited-offer {
    background: linear-gradient(45deg, #ef4444, #f59e0b, #ef4444);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, flash 2s ease-in-out infinite;
}

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

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

/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Container adjustments */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Typography scaling for very small screens */
    .text-6xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .text-5xl {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .text-4xl {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    .text-3xl {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .text-2xl {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }
    
    .text-xl {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Spacing adjustments */
    .py-20, .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-12, .mb-8 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    /* Hero section mobile optimization */
    .pt-32 {
        padding-top: 5rem !important;
    }
    
    /* Dashboard preview mobile */
    .max-w-4xl {
        max-width: 100% !important;
    }
    
    /* Button sizing for mobile */
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 0.75rem !important;
    }
    
    /* Navigation adjustments */
    nav .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Logo size adjustments */
    .w-10.h-10 {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    /* Brand text size */
    .text-2xl.font-bold {
        font-size: 1.25rem !important;
    }
}

/* Mobile Devices (481px - 640px) */
@media (max-width: 640px) {
    /* Container adjustments */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Typography scaling */
    .text-6xl {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-5xl {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
        line-height: 1.4 !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.5 !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }
    
    /* Spacing adjustments */
    .py-20, .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-12, .mb-8 {
        margin-bottom: 2rem !important;
    }
    
    .mb-6 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Hero section mobile optimization */
    .pt-32 {
        padding-top: 6rem !important;
    }
    
    /* Dashboard preview mobile */
    .max-w-4xl {
        max-width: 100% !important;
    }
    
    /* Financial partners mobile */
    .animate-scroll-left img {
        height: 2rem !important;
        width: auto !important;
    }
    
    /* Professional showcase mobile */
    .min-h-\[400px\] {
        min-height: 250px !important;
    }
    
    .min-h-\[500px\] {
        min-height: 300px !important;
    }
    
    /* Button sizing */
    .px-8 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 1rem !important;
    }
    
    /* Navigation adjustments */
    nav .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Tablet Devices (641px - 768px) */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .text-6xl {
        font-size: 3rem !important;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .py-20 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Touch-friendly mobile interactions */
@media (max-width: 640px) {
    /* Increase touch targets */
    button, a, .btn {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Improve button spacing */
    .space-x-4 > * + * {
        margin-left: 1rem !important;
    }
    
    .space-y-4 > * + * {
        margin-top: 1rem !important;
    }
    
    /* Mobile-specific hover states */
    .hover-lift:hover {
        transform: none !important;
    }
    
    /* Mobile scroll behavior */
    .animate-scroll-left {
        animation-duration: 25s !important;
        gap: 0.5rem !important;
    }
    
    /* Mobile card adjustments */
    .bg-white.p-6 {
        padding: 1rem !important;
    }
    
    /* Mobile image adjustments */
    .rounded-2xl {
        border-radius: 1rem !important;
    }
    
    /* Mobile footer adjustments */
    .grid.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 640px) and (orientation: landscape) {
    .pt-32 {
        padding-top: 4rem !important;
    }
    
    .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-16 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ===== MOBILE BUTTON OVERFLOW FIXES ===== */

/* Ensure all buttons are mobile-responsive */
@media (max-width: 640px) {
    /* Fix button overflow issues */
    .inline-block.bg-white.text-primary,
    .inline-block.bg-primary.text-white,
    .inline-block.bg-success.text-white,
    .inline-block.bg-gradient-to-r {
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    /* Ensure button text doesn't overflow */
    .inline-block.bg-white.text-primary span,
    .inline-block.bg-primary.text-white span,
    .inline-block.bg-success.text-white span {
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    /* Fix navigation buttons */
    nav .bg-primary.text-white {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.875rem !important;
        min-height: 2.5rem !important;
    }
    
    /* Fix CTA buttons */
    .bg-white.text-primary,
    .bg-primary.text-white {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.875rem !important;
        min-height: 2.75rem !important;
    }
    
    /* Ensure buttons don't break layout */
    .space-y-4 > .inline-block {
        display: block !important;
        width: 100% !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Further reduce button padding on very small screens */
    .inline-block.bg-white.text-primary,
    .inline-block.bg-primary.text-white,
    .inline-block.bg-success.text-white {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.75rem !important;
        min-height: 2.5rem !important;
    }
    
    /* Ensure button text is readable */
    .inline-block.bg-white.text-primary span,
    .inline-block.bg-primary.text-white span,
    .inline-block.bg-success.text-white span {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
}