/* Enterprise Systems 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: var(--text-primary);
}

.enterprise-loader {
    margin: 0 auto 2rem;
}

.server-rack {
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 8px;
    padding: 8px;
    border: 2px solid var(--accent-blue);
    position: relative;
}

.server-unit {
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, #2a2a2a, #3a3a3a);
    border-radius: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.server-lights {
    display: flex;
    gap: 4px;
}

.light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    animation: serverBlink 2s infinite ease-in-out;
}

.light:nth-child(1) { animation-delay: 0s; }
.light:nth-child(2) { animation-delay: 0.3s; }
.light:nth-child(3) { animation-delay: 0.6s; }

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

.loading-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: pulse 1.5s infinite;
}

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

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

/* Data Streams */
.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.data-streams::before,
.data-streams::after {
    content: '01010101 11001100 10101010 01100110';
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent-blue);
    white-space: nowrap;
    animation: dataFlow 15s linear infinite;
}

.data-streams::before {
    top: 20%;
    left: -100%;
    animation-delay: 0s;
}

.data-streams::after {
    top: 60%;
    left: -100%;
    animation-delay: 7s;
}

@keyframes dataFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Network Nodes */
.network-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.network-nodes::before,
.network-nodes::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: nodesPulse 4s infinite ease-in-out;
}

.network-nodes::before {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.network-nodes::after {
    top: 70%;
    right: 25%;
    animation-delay: 2s;
}

@keyframes nodesPulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.5); opacity: 0.15; }
}

/* System Grid */
.system-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        linear-gradient(90deg, var(--accent-blue) 1px, transparent 1px),
        linear-gradient(180deg, var(--accent-blue) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 10s infinite linear;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    animation: badgeGlow 3s infinite ease-in-out;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
}

.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;
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Enterprise Dashboard */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.enterprise-dashboard {
    background: rgba(15, 20, 25, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: dashboardFloat 8s infinite ease-in-out;
}

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

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

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-title h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-indicator.online {
    background: #10b981;
}

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

.dashboard-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dashboard-content {
    padding: 1.5rem;
}

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

.metric-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    animation: metricSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.metric-card:nth-child(1) { animation-delay: 1.5s; }
.metric-card:nth-child(2) { animation-delay: 1.7s; }
.metric-card:nth-child(3) { animation-delay: 1.9s; }
.metric-card:nth-child(4) { animation-delay: 2.1s; }

@keyframes metricSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

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

.metric-info {
    flex: 1;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.metric-trend {
    font-size: 1.25rem;
    font-weight: bold;
}

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

.system-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-dot.online { background: #10b981; }
.status-dot.warning { background: #fbbf24; }

/* Floating Systems */
.floating-systems {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.system-icon {
    position: absolute;
    font-size: 2.5rem;
    animation: floatSystem 10s infinite ease-in-out;
    opacity: 0.7;
}

.system-icon.erp { top: 10%; left: -15%; animation-delay: 0s; }
.system-icon.crm { top: 40%; right: -20%; animation-delay: 2.5s; }
.system-icon.database { bottom: 30%; left: -10%; animation-delay: 5s; }
.system-icon.cloud { top: 70%; right: -15%; animation-delay: 7.5s; }

/* ===== WHAT WE OFFER SECTION ===== */
.what-we-offer {
    padding: var(--space-24) 0;
    background: var(--gradient-background);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

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

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

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-16);
}

.offering-card {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.offering-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.offering-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.offering-icon svg {
    width: 30px;
    height: 30px;
    color: var(--text-white);
}

.offering-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.offering-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.offering-features {
    list-style: none;
    padding: 0;
}

.offering-features li {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    padding-left: var(--space-6);
    position: relative;
}

.offering-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* ===== WHY ENTERPRISE SYSTEMS MATTER SECTION ===== */
.why-enterprise-matters {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    position: relative;
}

.enterprise-benefits {
    margin-top: var(--space-16);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    padding: var(--space-8);
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(74, 107, 107, 0.2);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.benefit-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-white);
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.benefit-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ENGAGEMENT MODELS SECTION ===== */
.engagement-models {
    padding: var(--space-24) 0;
    background: var(--gradient-background);
    position: relative;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.model-card {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    position: relative;
}

.model-card.featured {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    z-index: 2;
}

.model-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.model-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-white);
}

.model-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
    flex: 1;
}

.model-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.model-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-6);
}

.model-features li {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    padding-left: var(--space-6);
    position: relative;
}

.model-features li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.model-ideal {
    padding: var(--space-4);
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.model-ideal strong {
    color: var(--accent-blue);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.faq-question {
    padding: var(--space-6);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-blue);
}

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

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

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

.faq-answer p {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4a5a 100%);
    position: relative;
    overflow: hidden;
}

.cta-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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

.cta-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 180px;
    justify-content: center;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .section-description {
        font-size: var(--text-base);
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .benefit-icon {
        margin: 0 auto;
    }
    
    .cta-title {
        font-size: var(--text-2xl);
    }
    
    .cta-description {
        font-size: var(--text-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@keyframes floatSystem {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-25px) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-35px) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .enterprise-dashboard {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .floating-systems {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
}
