/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    /* Colors - Dark Theme */
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #1e293b;
    --secondary-light: #475569;
    --accent-color: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #020617;
    --bg-card: #1e293b;
    --border-color: #334155;
    --border-light: #475569;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    
    /* Typography - Modern & Sleek */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Breakpoints */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scrolling on mobile */
    touch-action: pan-y;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-dark);
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* Prevent horizontal scrolling on mobile */
    touch-action: pan-y;
}

/* Prevent scrolling when loading screen is active */
body.loading-active {
    overflow: hidden;
    height: 100vh;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}









/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    /* Prevent horizontal scrolling issues */
    width: 100%;
    max-width: 100vw;
}

/* Mobile optimization for hero height */
@media (max-width: 768px) {
    .hero {
        min-height: 140vh;
        align-items: flex-start;
        padding-top: 2rem;
    }
}

/* Plasma Background Container */
.plasma-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
    padding: var(--space-3xl) var(--space-sm);
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-container {
        padding: var(--space-3xl) var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile optimization for hero layout */
@media (max-width: 768px) {
    .hero-container {
        gap: var(--space-xl);
        padding: var(--space-3xl) var(--space-sm);
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    .hero-content {
        order: 1;
        width: 100%;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    
    /* Ensure proper spacing */
    .hero-stats {
        margin-bottom: 2rem;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}



.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.badge-icon {
    color: var(--primary-color);
    margin-right: var(--space-xs);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        margin-right: auto;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 1s ease-out 0.6s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    animation: fadeInUp 1s ease-out 0.8s both;
}

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

@media (min-width: 1024px) {
    .stat-item {
        text-align: left;
    }
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}





.card-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-icon {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.875rem;
}



/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 100%);
    border-radius: 50% 0 0 50%;
    filter: blur(80px);
    opacity: 0.7;
}





/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

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

/* Services Section */
.services {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
    position: relative;
    /* Prevent horizontal scrolling issues */
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    /* Prevent horizontal scrolling issues */
    word-wrap: break-word;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    left: 0;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: white;
    margin-bottom: var(--space-md);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Process Section */
.process {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    position: relative;
    /* Prevent horizontal scrolling issues */
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.waves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Prevent horizontal scrolling issues */
    overflow: hidden;
}

.process .container {
    position: relative;
    z-index: 2;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-3xl);
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
    }
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .timeline-number {
        left: 30px;
        transform: translateX(-50%);
    }
}

.timeline-content {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    width: calc(50% - 30px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    /* Prevent horizontal scrolling issues */
    overflow: hidden;
    word-wrap: break-word;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

@media (max-width: 768px) {
    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        /* Prevent horizontal scrolling issues on mobile */
        overflow: hidden;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    /* Ensure process section doesn't create scroll bars */
    .process {
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .process .container {
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Ensure services section doesn't create scroll bars */
    .services {
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .services .container {
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .services-grid {
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.timeline-features {
    list-style: none;
}

.timeline-features li {
    position: relative;
    padding-left: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.timeline-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section */
.about {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-features {
    margin-top: var(--space-xl);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.neural-network-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.neural-network-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Network Title */
.network-title {
    text-align: center;
    position: relative;
    z-index: 2;
}

.network-title h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.network-title p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

/* Network Canvas */
.network-canvas {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

/* Layer Styling */
.layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.layer-label {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.neurons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Neuron Styling */
.neuron {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #3b82f6 0%, #1d4ed8 70%, #0f172a 100%);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: neuronPulse 3s ease-in-out infinite;
}

.neuron::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #06b6d4, #3b82f6);
    opacity: 0;
    animation: neuronGlow 2s ease-in-out infinite;
    z-index: -1;
}

.neuron:hover {
    transform: scale(1.3);
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.8),
        inset 0 0 12px rgba(255, 255, 255, 0.3);
}

@keyframes neuronPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.6),
            inset 0 0 8px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 
            0 0 30px rgba(59, 130, 246, 0.8),
            inset 0 0 12px rgba(255, 255, 255, 0.3);
    }
}

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

/* Layer-specific neuron colors */
.input-layer .neuron {
    background: radial-gradient(circle, #06b6d4 0%, #0891b2 70%, #0f172a 100%);
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.hidden-layer-1 .neuron {
    background: radial-gradient(circle, #3b82f6 0%, #1d4ed8 70%, #0f172a 100%);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.hidden-layer-2 .neuron {
    background: radial-gradient(circle, #8b5cf6 0%, #7c3aed 70%, #0f172a 100%);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.output-layer .neuron {
    background: radial-gradient(circle, #10b981 0%, #059669 70%, #0f172a 100%);
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Connection Lines */
.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.connection-line {
    stroke: #3b82f6;
    stroke-width: 1;
    opacity: 0.3;
    stroke-dasharray: 5,5;
    animation: connectionFlow 3s linear infinite;
}

@keyframes connectionFlow {
    0% {
        stroke-dashoffset: 20;
        opacity: 0.1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.1;
    }
}

/* Data Flow Particles */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    animation: particleFloat 4s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) translateX(10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-60px) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(-100px) translateX(0px) scale(0.5);
        opacity: 0;
    }
}

/* Network Stats */
.network-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .neural-network-container {
        height: 700px;
        padding: 15px;
        gap: 10px;
    }
    
    .network-title h3 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .network-title p {
        font-size: 0.75rem;
    }
    
    .network-canvas {
        gap: 5px;
        padding: 10px 0;
    }
    
    .layer {
        gap: 8px;
    }
    
    .layer-label {
        font-size: 0.6rem;
        line-height: 1.2;
        max-width: 60px;
        text-align: center;
        word-wrap: break-word;
    }
    
    .neurons {
        gap: 12px;
    }
    
    .neuron {
        width: 14px;
        height: 14px;
    }
    
    .network-stats {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .neural-network-container {
        height: 600px;
        padding: 10px;
    }
    
    .network-title h3 {
        font-size: 1rem;
    }
    
    .network-title p {
        font-size: 0.7rem;
    }
    
    .layer-label {
        font-size: 0.55rem;
        max-width: 50px;
    }
    
    .neurons {
        gap: 10px;
    }
    
    .neuron {
        width: 12px;
        height: 12px;
    }
    
    .network-stats {
        padding: 10px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
}

/* CTA Section */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    filter: blur(80px);
    opacity: 0.4;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Contact Section */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

/* Calendly Integration Styles */
.calendly-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.calendly-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
}

.calendly-wrapper iframe {
    border-radius: 16px;
    min-height: 700px;
    /* Balanced dark theme with CSS filters */
    filter: invert(0.85) hue-rotate(180deg) brightness(1) contrast(1) saturate(1);
    background: var(--bg-card);
}

.calendly-fallback {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.calendly-fallback p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

/* Responsive Calendly */
@media (max-width: 768px) {
    .calendly-wrapper iframe {
        height: 600px;
        min-height: 600px;
    }
}

/* Form Styles (Legacy - keeping for other forms) */
.form {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo .logo-img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-text {
    opacity: 0.8;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-text {
        text-align: right;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* AOS Animation Overrides */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile optimization: faster animations */
@media (max-width: 768px) {
    [data-aos="fade-up"] {
        transform: translateY(20px); /* Smaller distance on mobile */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    }
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    [data-aos="fade-left"] {
        transform: translateX(30px); /* Smaller distance on mobile */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    }
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    [data-aos="fade-right"] {
        transform: translateX(-30px); /* Smaller distance on mobile */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    }
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    [data-aos="zoom-in"] {
        transform: scale(0.95); /* Less scale on mobile */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .nav-container {
        padding: var(--space-xs) var(--space-sm);
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Hover Effects for Cards */
.service-card,
.timeline-content,
.feature-item {
    position: relative;
    overflow: hidden;
}

.service-card::after,
.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s;
}

.service-card:hover::after,
.timeline-content:hover::after {
    left: 100%;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    

    

}

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}



/* Page Hidden State */
.page-hidden * {
    animation-play-state: paused !important;
    transition: none !important;
}

/* Loading States */
.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Enhanced Focus States */
.service-card:focus-within,
.timeline-content:focus-within,
.feature-item:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .bg-gradient,
    .cta {
        display: none !important;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .section-title,
    .hero-title {
        color: #000 !important;
    }
    
    .gradient-text {
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --border-color: #ffffff;
        --bg-primary: #000000;
        --bg-card: #000000;
    }
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-dark);
    z-index: 9999;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform: scale(1);
    opacity: 1;
}

/* Mobile optimization for loading screen */
@media (max-width: 768px) {
    .loading-screen {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .welcome-phase,
    .loading-phase {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .terminal-bg {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .cmd-consoles-container {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
}

/* Mobile performance optimizations for hero section */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
        touch-action: pan-y; /* Only allow vertical scrolling */
    }
    
    /* Prevent horizontal scrolling on all elements */
    * {
        touch-action: pan-y;
    }
    
    /* Ensure card-swap-container is visible and interactive */
    .card-swap-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure all containers don't overflow */
    .container, .hero-container, .services, .solutions, .contact {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Prevent any element from causing horizontal scroll */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Specific elements that might cause overflow */
    .hero-content, .section-header, .services-grid, .solutions-grid {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero {
        /* Reduce backdrop-filter complexity on mobile */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-bg {
        /* Simplify background rendering on mobile */
        will-change: auto;
        overflow-x: hidden;
    }
    
    .plasma-container {
        /* Reduce WebGL complexity on mobile */
        will-change: auto;
        overflow-x: hidden;
    }
    
    .card-swap-container {
        /* Reduce transform complexity on mobile but preserve 3D space */
        will-change: auto;
        /* Remove overflow-x: hidden to prevent clipping of clickable areas */
    }
    
    /* Optimize animations for mobile */
    .card {
        /* Keep 3D transforms for proper click detection */
        will-change: auto;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        /* Remove overflow-x: hidden to prevent clipping of clickable areas */
    }
}

.loading-screen.fade-out {
    transform: scale(1.1);
    opacity: 0;
    filter: blur(10px);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Welcome Phase */
.welcome-phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    opacity: 1;
}

.welcome-phase.slide-out {
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
    filter: blur(5px);
}

.welcome-content {
    text-align: center;
    max-width: 500px;
    padding: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px) scale(0.9);
    opacity: 0;
}

/* Mobile optimization for welcome screen */
@media (max-width: 768px) {
    .welcome-content {
        max-width: 90%;
        padding: var(--space-lg);
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .get-started-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

.welcome-content.fade-in {
    animation: welcomeContentFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes welcomeContentFadeIn {
    0% {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.welcome-logo {
    margin-bottom: var(--space-lg);
}

.welcome-logo .logo-img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.get-started-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: translateY(0) scale(1);
    position: relative;
    overflow: hidden;
}

.get-started-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: left 0.6s ease;
}

.get-started-btn:hover::before {
    left: 100%;
}

.get-started-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.get-started-btn:active {
    transform: translateY(0);
}

/* Loading Phase */
.loading-phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    visibility: hidden;
}

.loading-phase.slide-in {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.cmd-consoles-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* CMD Console Styles */
.cmd-console {
    position: absolute;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.cmd-console.visible {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
}

/* Mobile Optimization for CMD Consoles */
@media (max-width: 768px) {
    .cmd-console {
        min-width: 280px;
        max-width: 320px;
        font-size: 0.875rem;
    }
    
    .cmd-console-header {
        padding: 0.5rem 0.75rem;
    }
    
    .cmd-console-title {
        font-size: 0.75rem;
    }
    
    .cmd-console-body {
        padding: 0.75rem;
    }
    
    .cmd-console-prompt {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .cmd-console-text {
        font-size: 0.75rem;
        min-height: 16px;
    }
}



.cmd-console-header {
    background: #2d2d2d;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmd-console-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.cmd-console-controls {
    display: flex;
    gap: 6px;
}

.cmd-console-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.cmd-console-button.minimize {
    background: #ffbd2e;
}

.cmd-console-button.maximize {
    background: #28ca42;
}

.cmd-console-button.close {
    background: #ff5f56;
}

.cmd-console-body {
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cmd-console-prompt {
    color: #3b82f6;
    margin-bottom: 8px;
}

.cmd-console-text {
    color: #ffffff;
    min-height: 20px;
}

/* Tech Matrix Background for Loading Phase */
.terminal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a2332 50%, #0a0f1a 100%);
    background-size: 400% 400%;
    animation: terminalGlow 8s ease-in-out infinite;
    overflow: hidden;
}

/* Remove white glow on mobile */
@media (max-width: 768px) {
    .terminal-bg {
        background: #0a0f1a;
        animation: none;
    }
    
    .terminal-glow {
        display: none;
    }
    
    /* Remove any potential white glows from other elements */
    * {
        box-shadow: none !important;
    }
    
    /* Ensure dark background throughout */
    body, html {
        background: #0a0f1a !important;
    }
}

.terminal-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.terminal-dot {
    position: absolute;
    width: 1px;
    height: 15px;
    background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
    animation: digitalRain 3s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

.terminal-dot[data-type="symbol"] {
    background: none;
    width: auto;
    height: auto;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 6px #3b82f6;
}

.terminal-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    animation: terminalGlowMove 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes terminalGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    25% {
        background-position: 100% 50%;
        filter: brightness(1.05);
    }
    50% {
        background-position: 200% 50%;
        filter: brightness(1.1);
    }
    75% {
        background-position: 300% 50%;
        filter: brightness(1.05);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes digitalRain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes terminalGlowMove {
    0%, 100% {
        opacity: 0.2;
        transform: translate(0, 0) scale(1);
    }
    25% {
        opacity: 0.4;
        transform: translate(15px, -15px) scale(1.05);
    }
    50% {
        opacity: 0.6;
        transform: translate(-10px, 20px) scale(1.1);
    }
    75% {
        opacity: 0.3;
        transform: translate(20px, 10px) scale(1.05);
    }
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    margin-bottom: var(--space-xl);
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-logo .logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.loading-message {
    margin-bottom: var(--space-xl);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    position: relative;
}



.loading-progress {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    animation: progressFill 3s ease-in-out forwards;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

/* Loading Animations */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}



@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

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



/* Responsive Loading Screen */
@media (max-width: 768px) {
    .loading-content {
        padding: var(--space-lg);
        max-width: 300px;
    }
    
    .loading-logo .logo-img {
        height: 60px;
    }
    
    .loading-message {
        font-size: 1.25rem;
        min-height: 2rem;
    }
}
