/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(52, 58, 64, 0.95) !important;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff05" points="0,1000 1000,0 1000,1000"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::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: var(--transition);
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

/* ===== DATA FLOW ANIMATION ===== */
.data-flow-container {
    height: 400px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gradient-success);
    border-radius: 50%;
    animation: floatData 3s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

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

/* ===== ETL PIPELINE ===== */
.etl-pipeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.etl-stage {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.etl-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: var(--transition);
}

.etl-stage.active::before {
    transform: translateX(0);
}

.etl-stage.active {
    background: white;
    box-shadow: var(--box-shadow);
    transform: scale(1.05);
}

.stage-header {
    margin-bottom: 20px;
}

.stage-header i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

.stage-header h3 {
    font-weight: 700;
    color: var(--dark-color);
}

.source-item, .operation-item, .dest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.source-item:hover, .operation-item:hover, .dest-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(10px);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

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

/* ===== CAPABILITIES SECTION ===== */
.capability-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: var(--transition);
}

.capability-card:hover::before {
    transform: translateX(0);
}

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

.capability-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.capability-icon i {
    font-size: 2rem;
    color: white;
}

.capability-card:hover .capability-icon {
    transform: rotate(360deg);
}

.skill-metrics {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-color);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    display: block;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* ===== TECHNOLOGIES SECTION ===== */
.tech-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.tech-category:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.tech-category h4 {
    margin-bottom: 20px;
    color: white;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.tech-showcase {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.tech-flow-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon i {
    font-size: 1.5rem;
    color: white;
}

.flow-arrow {
    color: var(--warning-color);
    font-size: 1.5rem;
    animation: flowPulse 2s infinite;
}

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

/* ===== DASHBOARD SECTION ===== */
.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.dashboard-card h5 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dashboard-card canvas {
    flex-grow: 1;
    max-height: 220px;
}

.dashboard-card .chart-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card h5 i {
    font-size: 1rem;
}

.dashboard-card h5 small {
    font-weight: 400;
    font-size: 0.8rem;
}

.metric-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-item {
    text-align: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.metric-item:hover {
    background: var(--gradient-primary);
    color: white;
}

.metric-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
    line-height: 1;
}

.metric-number.success {
    color: var(--success-color);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--dark-color);
    margin-top: 8px;
    line-height: 1.3;
}

.metric-label strong {
    color: var(--dark-color);
    font-weight: 600;
}

.metric-label small {
    font-size: 0.75rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

/* ===== TABLE STYLES ===== */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.table td {
    border: none;
    vertical-align: middle;
    padding: 15px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0, 123, 255, 0.05);
}

.table-hover tbody tr:hover {
    background: rgba(0, 123, 255, 0.1);
    cursor: pointer;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.table td strong {
    color: var(--dark-color);
    font-weight: 600;
}

.table td small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.progress {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.6s ease;
}

.status-badge i {
    font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .etl-pipeline-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .tech-flow {
        flex-direction: column;
    }
    
    .tech-flow .flow-arrow {
        transform: rotate(90deg);
    }
    
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .capability-card {
        margin-bottom: 20px;
    }
    
    /* Dashboard optimizations for tablets */
    .dashboard-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .dashboard-card h5 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    #dataQualityChart {
        height: 180px !important;
    }
    
    #volumeChart, #errorChart {
        height: 160px !important;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .etl-stage {
        min-width: 100%;
    }
    
    .metric-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .metric-item {
        flex: none;
        min-width: 100%;
        padding: 12px;
    }
    
    .metric-number {
        font-size: 2.2rem;
    }
    
    /* Dashboard optimizations for mobile */
    .dashboard-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .dashboard-card h5 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .chart-container {
        height: 180px;
        margin-top: 10px;
    }
    
    #dataQualityChart {
        height: 160px !important;
    }
    
    #volumeChart, #errorChart {
        height: 140px !important;
    }
    
    .dashboard-card canvas {
        max-height: 160px;
    }
}

/* ===== ANIMATION CLASSES ===== */
.animate-counter {
    animation: countUp 2s ease-out;
}

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

.pulse-animation {
    animation: continuousPulse 3s infinite;
}

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

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

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

/* ===== LOADING ANIMATIONS ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* ===== PARTICLES EFFECT ===== */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle 6s infinite linear;
}

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

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: var(--gradient-success);
    color: white;
}

.status-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.status-error {
    background: var(--danger-color);
    color: white;
}

/* ===== CHART CONTAINERS ===== */
.chart-container {
    position: relative;
    height: 250px;
    margin-top: 15px;
}

.chart-container canvas {
    border-radius: 10px;
}

/* ===== SPECIFIC CHART HEIGHTS ===== */
#dataQualityChart {
    height: 220px !important;
}

#volumeChart {
    height: 200px !important;
}

#errorChart {
    height: 200px !important;
}

/* ===== UTILITIES ===== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

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

.box-shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-primary) border-box;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, .hero-buttons, footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .dashboard-card, .capability-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
} 