/* Enhanced Global Styles for Elixpo Art */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* CSS Custom Properties for Enhanced Design System */
:root {
    /* Enhanced Color Palette inspired by /src/create */
    --color-primary: #8d49fd;
    --color-primary-light: #a968ff;
    --color-primary-dark: #7338e8;
    --color-secondary: #5691f3;
    --color-secondary-light: #7fa8f5;
    --color-secondary-dark: #4580f0;
    --color-accent: #7f56f3;
    --color-accent-light: #9d7af7;
    --color-accent-dark: #6640e0;
    
    /* Background colors */
    --color-bg-primary: #0a0f1c;
    --color-bg-secondary: #111827;
    --color-bg-tertiary: #1f2937;
    --color-bg-card: rgba(31, 41, 55, 0.6);
    --color-bg-card-hover: rgba(31, 41, 55, 0.8);
    
    /* Text colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #e5e7eb;
    --color-text-tertiary: #9ca3af;
    --color-text-accent: #f4c801;
    
    /* Border and surface colors */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.1);
    
    /* Gradient definitions */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    --gradient-accent: linear-gradient(135deg, #f4c801 0%, #ff8c00 100%);
    --gradient-surface: linear-gradient(135deg, rgba(141, 73, 253, 0.1) 0%, rgba(86, 145, 243, 0.05) 100%);
    
    /* Typography scale */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-family-display: 'Space Grotesk', var(--font-family-primary);
    --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;
    
    /* Spacing scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(141, 73, 253, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(244, 200, 1, 0.3);
    
    /* Animations */
    --animation-fast: 150ms ease;
    --animation-normal: 300ms ease;
    --animation-slow: 500ms ease;
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Selection styling */
::selection {
    background: var(--color-primary);
    color: var(--color-text-primary);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-text-primary);
}

/* Enhanced container */
.enhanced-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Enhanced Particles Background */
.enhanced-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: var(--color-bg-primary);
}

/* Background Decorations */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.decoration-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    top: 50%;
    right: -150px;
    animation-delay: -10s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    bottom: -250px;
    left: 30%;
    animation-delay: -5s;
}

.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(141, 73, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(86, 145, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(244, 200, 1, 0.05) 0%, transparent 50%);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

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

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

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

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(141, 73, 253, 0.3); }
    50% { box-shadow: 0 0 40px rgba(141, 73, 253, 0.6); }
}

/* Enhanced Typography Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Enhanced Button Base Styles */
.btn-enhanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--animation-normal);
    overflow: hidden;
    z-index: 1;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
    transition: all var(--animation-normal);
}

.btn-enhanced:hover::before {
    transform: scale(1.05);
}

.btn-enhanced:active {
    transform: scale(0.98);
}

/* Utility Classes */
.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;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive breakpoints */
@media (max-width: 1536px) { /* 2xl breakpoint */ }
@media (max-width: 1280px) { /* xl breakpoint */ }
@media (max-width: 1024px) { /* lg breakpoint */ }
@media (max-width: 768px) { /* md breakpoint */ }
@media (max-width: 640px) { /* sm breakpoint */ }
@media (max-width: 475px) { /* xs breakpoint */ }