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

:root {
    /* Cyberpunk Color Palette */
    --primary-cyan: #00ffff;
    --primary-magenta: #ff00ff;
    --primary-green: #00ff00;
    --accent-purple: #9945ff;
    --accent-orange: #ff8c00;
    
    /* Background Colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: rgba(20, 20, 20, 0.9);
    --bg-glass: rgba(0, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: var(--primary-cyan);
    
    /* Fonts */
    --font-heading: 'Orbitron', monospace;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Effects */
    --glow-cyan: 0 0 20px var(--primary-cyan);
    --glow-magenta: 0 0 20px var(--primary-magenta);
    --glow-green: 0 0 20px var(--primary-green);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Links */
a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-magenta);
    text-shadow: var(--glow-magenta);
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 3;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: var(--glow-cyan);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.studios-text {
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-magenta), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: transparent;
}

.btn-primary:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
    text-shadow: none;
}

.btn-secondary {
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary-magenta);
    color: var(--bg-dark);
    box-shadow: var(--glow-magenta);
    text-shadow: none;
}

.btn-accent {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-accent:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    box-shadow: var(--glow-green);
    text-shadow: none;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

.btn-disabled {
    border-color: #444;
    color: #666;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: transparent;
    color: #666;
    box-shadow: none;
}

/* Cards */
.feature-card,
.project-card,
.entity-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.project-card:hover,
.entity-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px);
}

.feature-card::before,
.project-card::before,
.entity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover::before,
.project-card:hover::before,
.entity-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary-cyan);
}

.card-header h3 {
    color: var(--text-primary);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-cyan);
    font-weight: 600;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--primary-magenta);
    transform: translateX(5px);
}

/* Grids */
.features-grid,
.projects-grid,
.entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Stats */
.stats {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    font-weight: 700;
    text-shadow: var(--glow-cyan);
}

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

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    border-radius: 4px;
    transition: width 1s ease;
    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: shimmer 2s infinite;
}

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

/* Status Indicators */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.active {
    background: var(--primary-green);
    box-shadow: 0 0 10px var(--primary-green);
    animation: pulse 2s infinite;
}

.status-dot.developing {
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange);
}

.status-dot.offline {
    background: #666;
}

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

/* Code Blocks */
code {
    font-family: var(--font-mono);
    background: rgba(0, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: var(--primary-cyan);
    font-size: 0.9rem;
}

pre {
    background: var(--bg-darker);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    overflow-x: auto;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .projects-grid,
    .entities-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bg-dark: #000000;
        --text-primary: #ffffff;
        --primary-cyan: #00ffff;
        --primary-magenta: #ff00ff;
        --primary-green: #00ff00;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
