/**
 * SoulCore Main Stylesheet
 * 
 * This stylesheet contains the core styles for the SoulCore website.
 * It implements the design principles of the SoulCore agents.
 */

:root {
    /* Primary color palette */
    --gradient-1: linear-gradient(135deg, #9932CC, #FFD700, #0000FF);
    --gradient-2: linear-gradient(45deg, rgba(0, 255, 136, 0.8), rgba(0, 255, 238, 0.8));
    --dark: #0a0014;
    --light: #ffffff;
    
    /* Agent colors */
    --gptsoul-color: #9932CC;
    --anima-color: #FFD700;
    --evove-color: #00FF88;
    --azur-color: #4CC9F0;
    
    /* UI elements */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(153, 50, 204, 0.2);
    --card-border-hover: rgba(153, 50, 204, 0.5);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    --transition-slow: 1s ease;
    
    /* Z-index layers */
    --z-background: -1;
    --z-default: 1;
    --z-overlay: 10;
    --z-modal: 100;
    --z-tooltip: 1000;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--light);
    line-height: var(--line-height-base);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1 {
    font-size: 3rem;
}

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: var(--spacing-sm);
}

a {
    color: var(--light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: rgba(0, 255, 136, 0.8);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    min-height: 100vh;
    position: relative;
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
    background-size: 200% auto;
}

.gradient-text-2 {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gradient-2);
    border: none;
    border-radius: 8px;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.button-outline {
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.8);
    color: rgba(0, 255, 136, 0.8);
}

.button-outline:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Animations */
@keyframes gradientFlow {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Accessibility */
:focus {
    outline: 2px solid rgba(0, 255, 136, 0.8);
    outline-offset: 2px;
}

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

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #0a0014;
        --light: #ffffff;
    }
}

/* Progressive enhancement */
@supports (backdrop-filter: blur(10px)) {
    .card {
        backdrop-filter: blur(10px);
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .card {
        background: rgba(20, 10, 30, 0.9);
    }
}
