/* Data Analytics Page Styles */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #00d4ff;
}

.loading-dots span {
    animation: loadingDots 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #4a6b6b);
    transform: translateX(-100%);
    animation: progressBar 1.5s ease-out infinite;
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loading-particles::before,
.loading-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    animation: floatingParticles 3s infinite linear;
}

.loading-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.loading-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a3a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.data-visualization {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 400px;
    height: 300px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.bar-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 150px;
    padding: 0 20px;
    margin-bottom: 2rem;
}

.bar {
    width: 20px;
    background: linear-gradient(to top, #00d4ff, #4a6b6b);
    border-radius: 2px 2px 0 0;
    animation: barGrow 2s ease-out infinite alternate;
}

.bar:nth-child(odd) {
    animation-delay: 0.2s;
}

.line-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

.line-chart polyline {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-out forwards;
}

.floating-data {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.data-point {
    position: absolute;
    font-size: 2rem;
    animation: floatData 4s ease-in-out infinite;
}

.data-point:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.data-point:nth-child(2) {
    top: 30%;
    right: 10%;
    animation-delay: 0.8s;
}

.data-point:nth-child(3) {
    bottom: 40%;
    left: 10%;
    animation-delay: 1.6s;
}

.data-point:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 2.4s;
}

.data-point:nth-child(5) {
    top: 60%;
    left: 50%;
    animation-delay: 3.2s;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: var(--text-white);
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, #00d4ff, #4a6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.analytics-dashboard {
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    animation: dashboardFloat 6s ease-in-out infinite;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title {
    font-weight: 600;
    color: white;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.status-dot.live {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
}

.metric-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.metric-trend {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.metric-trend.up {
    color: #10b981;
}

.chart-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.chart-title {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 60px;
    gap: 4px;
}

.chart-bar {
    width: 12px;
    background: linear-gradient(to top, #00d4ff, #4a6b6b);
    border-radius: 2px 2px 0 0;
    animation: chartBarGrow 2s ease-out infinite alternate;
}

.chart-bar:nth-child(even) {
    animation-delay: 0.3s;
}

/* Analytics Overview Section */
.analytics-overview {
    padding: 6rem 0;
    background: #0f1419;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-base);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    transition: left 0.5s ease;
}

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

.analytics-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #00d4ff;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.card-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Animations */
@keyframes loadingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes progressBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes floatingParticles {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

@keyframes barGrow {
    0% { transform: scaleY(0.8); }
    100% { transform: scaleY(1.2); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes floatData {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

@keyframes chartBarGrow {
    0% { transform: scaleY(0.7); }
    100% { transform: scaleY(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .data-visualization {
        position: relative;
        right: auto;
        transform: none;
        width: 100%;
        height: 200px;
        margin-top: 2rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .analytics-card {
        padding: 1.5rem;
    }
}
