/* Main Styles for Assuria DataSense Website */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #111827; /* Dark background */
    color: #D1D5DB; /* Light gray text */
}

/* Navigation Styles */
.nav-link {
    @apply px-3 py-2 rounded-md text-sm font-medium text-gray-300 hover:bg-gray-700 hover:text-white transition-colors;
}

.nav-link-active {
    @apply bg-gray-900 text-white;
}

/* Button Styles */
.cta-button {
    @apply px-6 py-3 bg-cyan-600 text-white font-semibold rounded-lg shadow-md hover:bg-cyan-700 transition-colors text-center;
}

/* Typography */
.section-title {
    @apply text-3xl md:text-4xl font-bold text-white mb-8 text-center;
}

/* Card Styles */
.card {
    @apply bg-gray-800 p-6 rounded-lg shadow-xl h-full;
}

.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);
}

/* Footer Styles */
.footer-link {
    @apply text-gray-400 hover:text-cyan-500 transition-colors;
}

/* Enhanced Custom Scrollbar - More Visible and Easier to Use */
::-webkit-scrollbar {
    width: 14px; /* Increased width for better visibility */
}

::-webkit-scrollbar-track {
    background: #111827; /* Darker track for better contrast */
    border-radius: 7px;
    border: 1px solid #374151; /* Subtle border for definition */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4 0%, #3b82f6 100%); /* Gradient thumb */
    border-radius: 7px;
    border: 2px solid #111827; /* Border to separate from track */
    min-height: 40px; /* Minimum thumb height for easier grabbing */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0891b2 0%, #2563eb 100%); /* Darker gradient on hover */
    border-color: #1f2937;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.3); /* Glow effect on hover */
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #0e7490 0%, #1d4ed8 100%); /* Even darker when dragging */
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: auto;
    scrollbar-color: #06b6d4 #111827;
}

/* Additional scrollbar enhancements for better visibility */
::-webkit-scrollbar-corner {
    background: #111827;
}

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

/* Enhanced scrollbar for specific containers */
.scrollable-container::-webkit-scrollbar {
    width: 12px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 6px;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 6px;
    border: 2px solid #1f2937;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
    box-shadow: 0 0 6px rgba(75, 85, 99, 0.4);
}

/* Background Styles */
.hero-bg {
    background-color: #1a202c; /* A slightly lighter dark shade for hero */
}

/* Icon Styles */
.feature-icon {
    @apply w-8 h-8 text-cyan-500 mb-4;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

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

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

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

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation for CTA */
.pulse-cta {
    animation: pulse 2s infinite;
}

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

/* Pipeline Animation Styles */
.log-dot {
    animation: moveLog 3s infinite linear;
}

.log-dot:nth-child(1) { animation-delay: 0s; }
.log-dot:nth-child(2) { animation-delay: 1s; }
.log-dot:nth-child(3) { animation-delay: 2s; }

@keyframes moveLog {
    0% { cx: 50; cy: 90; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { cx: 210; cy: 90; opacity: 0; }
}

#sparkle {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Hover Effects */
.hover-group:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* Professional Pipeline Visualization Styles */
.pipeline-stage {
    transition: all 0.3s ease;
}

.stage-container {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.stage-glow {
    transition: opacity 0.3s ease;
}

.flow-path {
    animation: flowPath 3s linear infinite;
}

@keyframes flowPath {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}

.data-particle {
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.6));
    transition: all 0.1s ease;
}

.processing-animation {
    animation: processing 2s linear infinite;
}

@keyframes processing {
    0% { transform: translate(280px, 140px) rotate(0deg); }
    100% { transform: translate(280px, 140px) rotate(360deg); }
}

.sparkle-icon {
    animation: sparklePulse 2s ease-in-out infinite;
}

@keyframes sparklePulse {
    0%, 100% { transform: translate(440px, 125px) scale(1); }
    50% { transform: translate(440px, 125px) scale(1.2); }
}

.flow-arrow {
    stroke-dasharray: 5, 5;
    animation: flowArrow 2s linear infinite;
}

@keyframes flowArrow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -10; }
}

.flow-dot {
    animation: flowDot 1.5s ease-in-out infinite;
}

@keyframes flowDot {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Enhanced Tooltip Styles */
.pipeline-tooltip {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tooltip-header {
    margin-bottom: 8px;
}

.tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.tooltip-description {
    font-size: 13px;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0 0 12px 0;
}

.tooltip-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tooltip-feature {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: inline-block;
    white-space: nowrap;
}

/* Stage Information Cards */
.stage-info-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stage-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Pipeline */
@media (max-width: 768px) {
    #pipeline-svg {
        height: 200px;
        viewBox: "0 0 600 200";
    }
    
    .pipeline-stage text {
        font-size: 12px !important;
    }
    
    .pipeline-stage .stage-subtitle {
        font-size: 10px !important;
    }
}

/* Animation Performance Optimizations */
.pipeline-stage * {
    will-change: transform, opacity;
}

.data-particle {
    will-change: transform, opacity, r;
}

/* Loading State */
.pipeline-loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent;
}

.form-label {
    @apply block text-sm font-medium text-gray-300 mb-2;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Cookie Banner Styles */
#cookie-banner {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

#cookie-settings-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Image Carousel Styles */
.image-carousel-container {
    position: relative;
    width: 100%;
    height: auto;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

/* Carousel Indicators */
.carousel-indicator {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    background-color: #ffffff;
    opacity: 0.5;
}

.carousel-indicator:hover {
    opacity: 0.8 !important;
    transform: scale(1.2);
}

.carousel-indicator.active {
    opacity: 1 !important;
    background-color: #38bdf8 !important;
}

/* Pipeline Container Enhancements */
.pipeline-container {
    position: relative;
    overflow: hidden;
}

.pipeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced Data Flow Animation Styles - More Visible */
.flow-particle {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
    transition: all 0.1s ease;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
}

.flow-particle:nth-child(1) {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 1)) drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
}

.flow-particle:nth-child(2) {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 1)) drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
}

.flow-particle:nth-child(3) {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 1)) drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}

.flow-particle:nth-child(4) {
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 1)) drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.flow-particle:nth-child(5) {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 1)) drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
}

/* Enhanced Flow Path Animation */
.flow-path {
    animation: flowPath 4s linear infinite;
}

@keyframes flowPath {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}

/* Pipeline Stage Hover Effects */
.pipeline-stage:hover .stage-container {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.pipeline-stage:hover .stage-glow {
    opacity: 0.3 !important;
}

/* Connection Arrow Animation */
.flow-arrow {
    stroke-dasharray: 5, 5;
    animation: flowArrow 3s linear infinite;
}

@keyframes flowArrow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -10; }
}

/* Particle Trail Effect */
.data-particle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleTrail 0.5s ease-out forwards;
}

@keyframes particleTrail {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
} 