/* CSS Reset & Variables */
:root {
    --primary-bg: #0a0a0b;
    --secondary-bg: #111114;
    --card-bg: #1a1a1e;
    --border-color: #2a2a30;
    --accent-primary: #00ff88;
    --accent-secondary: #0088ff;
    --accent-tertiary: #ff0088;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animations */
.data-stream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(45deg, transparent 49%, rgba(0, 255, 136, 0.02) 50%, transparent 51%),
                linear-gradient(-45deg, transparent 49%, rgba(0, 136, 255, 0.02) 50%, transparent 51%);
    background-size: 40px 40px;
    animation: dataFlow 20s linear infinite;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

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

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: -10s;
    background: var(--accent-secondary);
}

@keyframes dataFlow {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-40px) translateY(-40px); }
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}



/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Titles */
.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

/* Technology Section */
.technology {
    padding: 4rem 0 6rem;
    background: var(--secondary-bg);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
}

.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-primary);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(45deg, #666, #999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tech-icon::before {
    content: attr(data-icon);
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: -1;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(1px);
}

.tech-icon.lightning {
    background: linear-gradient(135deg, #ffeb3b 0%, #ff9800 50%, #e91e63 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(255, 152, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 235, 59, 0.3));
}

.tech-icon.brain {
    background: linear-gradient(135deg, #9c27b0 0%, #3f51b5 50%, #00bcd4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(156, 39, 176, 0.4)) drop-shadow(0 0 20px rgba(63, 81, 181, 0.3));
}

.tech-icon.mathematical {
    background: linear-gradient(135deg, #4caf50 0%, #00ff88 50%, #64ffda 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.4)) drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.tech-icon.algorithmic {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 50%, #ffc107 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(255, 87, 34, 0.4)) drop-shadow(0 0 20px rgba(255, 152, 0, 0.3));
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.tech-card:hover .tech-icon {
    transform: scale(1.15) translateY(-4px) rotateY(5deg);
    filter: 
        drop-shadow(0 8px 25px rgba(0, 255, 136, 0.4)) 
        drop-shadow(0 0 30px currentColor)
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}

.tech-card:hover .tech-icon.lightning {
    filter: 
        drop-shadow(0 8px 25px rgba(255, 152, 0, 0.6)) 
        drop-shadow(0 0 35px rgba(255, 235, 59, 0.5))
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}

.tech-card:hover .tech-icon.brain {
    filter: 
        drop-shadow(0 8px 25px rgba(156, 39, 176, 0.6)) 
        drop-shadow(0 0 35px rgba(63, 81, 181, 0.5))
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}

.tech-card:hover .tech-icon.mathematical {
    filter: 
        drop-shadow(0 8px 25px rgba(76, 175, 80, 0.6)) 
        drop-shadow(0 0 35px rgba(0, 255, 136, 0.5))
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}

.tech-card:hover .tech-icon.algorithmic {
    filter: 
        drop-shadow(0 8px 25px rgba(255, 87, 34, 0.6)) 
        drop-shadow(0 0 35px rgba(255, 152, 0, 0.5))
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Performance Section */
.performance {
    padding: 6rem 0;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.metric-card:hover::before {
    opacity: 0.05;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.metric-value {
    margin-bottom: 1rem;
}

.metric-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--accent-primary);
    display: block;
    line-height: 1;
}

/* Special styling for mathematical symbols */
.metric-number.math-symbol {
    font-size: 3.5rem;
    line-height: 1;
}

/* Specific sizing for infinity in hero stats */
.stat .stat-number.math-symbol {
    font-size: 3rem;
    line-height: 1;
}

.metric-unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-left: 0.25rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    background: var(--secondary-bg);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.philosophy-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.philosophy-item {
    padding: 1.5rem 0;
}

.philosophy-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.philosophy-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .technology,
    .philosophy {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .tech-grid,
    .metrics-container {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
}