/* System Integration 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-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loading-connections::before,
.loading-connections::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #00d4ff, transparent);
    animation: connectionFlow 3s infinite linear;
}

.loading-connections::before {
    left: 20%;
    animation-delay: 0s;
}

.loading-connections::after {
    right: 20%;
    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;
}

.integration-network {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 500px;
    height: 400px;
}

.network-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: nodeFloat 4s ease-in-out infinite;
}

.node.central {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 212, 255, 0.2);
    animation-delay: 0s;
}

.node.system-1 {
    top: 10%;
    left: 30%;
    animation-delay: 0.5s;
}

.node.system-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.node.system-3 {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

.node.system-4 {
    bottom: 10%;
    left: 20%;
    animation-delay: 2s;
}

.node.system-5 {
    top: 40%;
    left: 10%;
    animation-delay: 2.5s;
}

.node-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.node-label {
    font-size: 0.8rem;
    color: #00d4ff;
    font-weight: 500;
}

.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: connectionPulse 3s ease-in-out infinite;
}

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

.integration-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.active {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.system-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.system-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.system-icon {
    font-size: 1.5rem;
}

.system-info {
    flex: 1;
}

.system-name {
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
}

.system-status {
    font-size: 0.8rem;
}

.system-status.online {
    color: #10b981;
}

.system-metrics {
    display: flex;
    gap: 0.25rem;
}

.metric-dot {
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    animation: metricPulse 2s ease-in-out infinite;
}

.metric-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.metric-dot:nth-child(3) {
    animation-delay: 0.6s;
}

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

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

.flow-visualization {
    position: relative;
    height: 40px;
}

.flow-line {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 1px;
    overflow: hidden;
}

.flow-pulse {
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: flowPulse 2s linear infinite;
}

.flow-stats {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 0.8rem;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
}

/* Integration Overview Section */
.integration-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;
}

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

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

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

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

.integration-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 connectionFlow {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

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

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

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

@keyframes flowPulse {
    0% { left: -20px; }
    100% { left: 100%; }
}

@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;
    }
    
    .integration-network {
        position: relative;
        right: auto;
        transform: none;
        width: 100%;
        height: 200px;
        margin-top: 2rem;
    }
    
    .integration-grid {
        grid-template-columns: 1fr;
    }
    
    .system-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;
    }
    
    .integration-card {
        padding: 1.5rem;
    }
}
