/* Custom Styles for DocuFlow Scanner */

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

/* Navigation */
.nav-link {
    @apply text-gray-700 dark:text-gray-300 hover:text-primary-light transition-colors;
}

/* Language Buttons */
.lang-btn.active,
.mobile-lang-btn.active,
.footer-lang-btn.active {
    @apply bg-white dark:bg-gray-700 text-primary-light shadow-sm;
}

.lang-btn:not(.active),
.mobile-lang-btn:not(.active),
.footer-lang-btn:not(.active) {
    @apply text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200;
}

.mobile-lang-btn.active {
    @apply bg-primary-light text-white;
}

.mobile-lang-btn:not(.active) {
    @apply bg-gray-100 dark:bg-gray-800;
}

/* Navigation Background on Scroll */
.nav-scrolled {
    @apply bg-white/90 dark:bg-neutral-dark/90 backdrop-blur-lg shadow-lg;
}

/* Hero Section */
.hero-section {
    font-family: 'Inter', sans-serif;
}

.neural-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-shape-1 {
    top: 25%;
    left: 25%;
    width: 16rem;
    height: 16rem;
    background: #06b6d4;
}

.floating-shape-2 {
    bottom: 25%;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: #3b82f6;
    animation-delay: 1s;
}

.floating-shape-3 {
    top: 50%;
    right: 33%;
    width: 12rem;
    height: 12rem;
    background: #10b981;
    animation-delay: 2s;
}

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

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Scan Border Animation */
.scan-border {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.corner-marker {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: #06b6d4;
    border-radius: 50%;
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.corner-tl {
    top: -0.25rem;
    left: -0.25rem;
}

.corner-tr {
    top: -0.25rem;
    right: -0.25rem;
    animation-delay: 0.2s;
}

.corner-bl {
    bottom: -0.25rem;
    left: -0.25rem;
    animation-delay: 0.4s;
}

.corner-br {
    bottom: -0.25rem;
    right: -0.25rem;
    animation-delay: 0.6s;
}

/* Scan Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateY(400%);
    }
}

/* Metric Cards */
.metric-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .metric-card {
    background: rgba(17, 24, 39, 0.9);
}

/* Store Badges */
.store-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.3);
}

.store-badge-large {
    background: white;
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.store-badge-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

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

.hero-visual {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.scroll-indicator {
    animation: fadeIn 1s ease-out 0.5s both;
}

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

/* Stat Cards */
.stat-card {
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

/* Feature Cards */
.feature-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    overflow: hidden;
}

.dark .feature-card {
    background: #1f2937;
    border-color: #374151;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Technology Cards */
.tech-card {
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid;
}

/* How It Works */
.step-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.dark .step-card {
    background: #1f2937;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Use Case Cards */
.use-case-card {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.dark .use-case-card {
    background: #1f2937;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.dark .pricing-card {
    background: #1f2937;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.pricing-card.highlighted {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border: 2px solid #3b82f6;
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a365d 0%, #3b82f6 50%, #06b6d4 100%);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-item {
    background: #f9fafb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.dark .faq-item {
    background: #1f2937;
}

.faq-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background: #f3f4f6;
}

.dark .faq-question:hover {
    background: #374151;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Testimonials */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.dark .testimonial-nav {
    background: #1f2937;
    color: #d1d5db;
}

.testimonial-nav:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-left {
    left: 0;
    transform: translate(-1rem, -50%);
}

.testimonial-nav-right {
    right: 0;
    transform: translate(1rem, -50%);
}

@media (min-width: 768px) {
    .testimonial-nav-left {
        transform: translate(-3rem, -50%);
    }
    .testimonial-nav-right {
        transform: translate(3rem, -50%);
    }
    .testimonial-nav:hover.testimonial-nav-left {
        transform: translate(-3rem, -50%) scale(1.1);
    }
    .testimonial-nav:hover.testimonial-nav-right {
        transform: translate(3rem, -50%) scale(1.1);
    }
}

.testimonial-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
}

.dark .testimonial-dot {
    background: #4b5563;
}

.testimonial-dot.active {
    width: 2rem;
    background: #3b82f6;
}

.testimonial-dot:hover:not(.active) {
    background: #9ca3af;
}

/* Integration Cards */
.integration-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.dark .integration-card {
    background: #1f2937;
}

.integration-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Security Badges */
.security-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s;
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

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

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

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

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #1a365d 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
