/* ProspectAI Pro Custom Styles */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section Background */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    will-change: transform;
}

/* Parallax effect for hero background */
@media (min-width: 768px) {
    .hero-section {
        background-attachment: fixed;
    }
}

/* Disable parallax on mobile for performance */
@media (max-width: 767px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%239CA3AF" fill-opacity="0.05" fill-rule="nonzero"><circle cx="30" cy="30" r="2"/></g></svg>');
    background-size: 200px 200px, 150px 150px, 60px 60px;
    animation: float 20s ease-in-out infinite;
}

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

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

/* Navigation Enhancements */
nav {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-button:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

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

/* Card Animations and Borders */
.feature-card, .benefit-card, .testimonial-card, .faq-card {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover, .benefit-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d1d5db;
}

/* Feature cards initial state for animations */
.feature-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

/* Pricing cards - visible by default */
.pricing-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
    border: none;
}

/* Animation keyframes */
@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 slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section animations */
.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

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

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

/* CTA Section - Make it solid blue */
.cta-section {
    background: #2563eb !important;
    background-image: none !important;
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Pricing Card Enhancements */
.pricing-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb !important; /* Light gray border for all cards */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6 !important; /* Blue border on hover */
}

/* Agency/Popular pricing card special styling */
.pricing-card[class*="border-4"] {
    border: 4px solid #3b82f6 !important; /* Blue border for popular card */
    position: relative;
    z-index: 5;
}

.pricing-card[class*="border-4"]:hover {
    transform: translateY(-8px);
    border-color: #1d4ed8 !important;
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.2);
}

/* Popular badge styling */
.pricing-card .absolute span {
    position: relative;
    z-index: 20;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: 2px solid #ffffff;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.pricing-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

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

/* Feature Icons Animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ROI Calculator Styles */
.roi-input {
    transition: all 0.3s ease;
}

.roi-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* FAQ Accordion Styles */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.active {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

/* Testimonial Card Styles */
.testimonial-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 8px 8px 0 0;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.alert-success {
    background-color: #10b981;
    color: white;
}

.alert-error {
    background-color: #ef4444;
    color: white;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: slideIn 2s ease-in-out;
}

@keyframes slideIn {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

/* Focus Styles for Better Accessibility */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .auto-dark .bg-white {
        background-color: #374151 !important;
    }
    
    .auto-dark .text-gray-900 {
        color: #f9fafb !important;
    }
    
    .auto-dark .text-gray-600 {
        color: #d1d5db !important;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Lucide Icons Styling - Bold White */
.lucide-icon {
    stroke-width: 2.5;
    color: white;
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: middle;
}

.lucide-icon-dark {
    stroke-width: 2.5;
    color: #1f2937;
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: middle;
}

.lucide-icon-dark.text-green-500 {
    color: #10b981;
}

.lucide-icon-dark.text-blue-600 {
    color: #2563eb;
}

.lucide-icon-dark.text-purple-600 {
    color: #9333ea;
}

.lucide-icon-dark.text-green-600 {
    color: #16a34a;
}

.lucide-icon-dark.text-yellow-600 {
    color: #ca8a04;
}

.lucide-icon-dark.text-red-600 {
    color: #dc2626;
}

.lucide-icon-dark.text-indigo-600 {
    color: #4f46e5;
}

.lucide-icon-dark.text-yellow-400 {
    color: #facc15;
}

.lucide-icon-dark.fill-current {
    fill: currentColor;
}

.lucide-icon-dark.text-black {
    color: #000000 !important;
    stroke-width: 3;
}

/* Custom Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Interactive Elements */
.interactive:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    max-width: 600px;
    margin: 0 auto;
    animation: slideUp 0.5s ease-out;
}

.cookie-banner.show {
    display: flex;
}

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

/* Desktop-specific cookie banner styles */
@media (min-width: 768px) {
    .cookie-banner {
        left: 50%;
        right: auto;
        width: 90%;
        max-width: 700px;
        padding: 24px;
        border-radius: 16px;
        margin-left: -45%;
    }
    
    .cookie-banner p {
        font-size: 16px;
        line-height: 1.5;
        margin-right: 24px;
    }
    
    .cookie-buttons {
        gap: 12px;
        flex-shrink: 0;
    }
    
    .cookie-banner button {
        padding: 12px 24px;
        font-size: 15px;
        border-radius: 8px;
        min-width: 100px;
    }
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    margin-right: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner button {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.accept-btn {
    background: #3b82f6;
    color: white;
}

.accept-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.decline-btn {
    background: transparent;
    color: white;
    border: 1px solid #6b7280;
}

.decline-btn:hover {
    background: #374151;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.cookie-banner.hidden {
    display: none !important;
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile responsive adjustments for cookie banner and scroll button */
@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner p {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-buttons button {
        flex: 1;
        max-width: 120px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}