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

/* CSS Variables - Design System */
:root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --primary: 262 83% 58%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4% 16%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 4% 16%;
    --muted-foreground: 240 5% 65%;
    --accent: 240 4% 16%;
    --accent-foreground: 0 0% 98%;
    --border: 240 4% 16%;
    --radius: 0.75rem;
    
    /* Custom gradients and effects */
    --gradient-primary: linear-gradient(135deg, hsl(262 83% 58%), hsl(300 83% 68%));
    --gradient-background: linear-gradient(135deg, hsl(240 10% 3.9%), hsl(240 8% 6%));
    --glow-primary: 0 0 40px hsl(262 83% 58% / 0.3);
    --glow-accent: 0 0 20px hsl(300 83% 68% / 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Elements */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--gradient-background);
    color: hsl(var(--foreground));
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Utilities */
.min-h-screen {
    min-height: 100vh;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.z-10 {
    z-index: 10;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.inline-flex {
    display: inline-flex;
}

/* Spacing */
.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

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

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-display {
    font-family: 'Inter', system-ui, sans-serif;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Colors */
.text-white {
    color: white;
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-primary {
    color: hsl(var(--primary));
}

/* Background and Gradients */
.bg-gradient-overlay {
    background: linear-gradient(to bottom right, hsl(var(--background) / 0.9), hsl(var(--background) / 0.7));
}

.bg-gradient-text {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(300 83% 68%));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

.gradient-primary {
    background: var(--gradient-primary);
}

.bg-progress-bg {
    background: hsl(var(--secondary) / 0.5);
}

/* Card Styles */
.card-progress {
    padding: 1.5rem;
    background: hsl(var(--card) / 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: var(--radius);
    transition: var(--transition-smooth);
}

.card-progress:hover {
    background: hsl(var(--card) / 0.7);
}

/* Progress Bar */
.progress-bar {
    background: var(--gradient-primary);
    width: 75%;
    animation: progressGrow 2s ease-out 0.5s both;
}

/* Sizing */
.w-full {
    width: 100%;
}

.w-20 {
    width: 5rem;
}

.w-10 {
    width: 2.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-full {
    height: 100%;
}

.h-20 {
    height: 5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-6 {
    height: 1.5rem;
}

.h-3 {
    height: 0.75rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-lg {
    max-width: 32rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Border Radius */
.rounded-full {
    border-radius: 9999px;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Opacity */
.opacity-30 {
    opacity: 0.3;
}

/* Effects */
.glow-primary {
    box-shadow: var(--glow-primary);
}

.transition-smooth {
    transition: var(--transition-smooth);
}

.transition-all {
    transition: all 0.3s ease;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

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

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

@keyframes progressGrow {
    from {
        width: 0%;
    }
    to {
        width: 75%;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Loading Animation */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Focus and Accessibility */
*:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .absolute {
        position: static;
    }
}