/* Enhanced Typography Foundation */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image: var(--gradient-background);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
    cursor: default; /* Fix default cursor for body */
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-background);
    z-index: -2;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Enhanced Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #F0F6FC;
    margin-bottom: 0.75em;
    cursor: default; /* Fix cursor for headings */
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Enhanced Paragraph Typography */
p {
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: -0.005em;
    color: #8B949E;
    margin-bottom: 1.25em;
    cursor: default; /* Fix cursor for paragraphs */
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
    cursor: default;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.6;
    cursor: default;
}

/* Enhanced Color Contrast */
.text-primary {
    color: var(--text-primary);
    cursor: default;
}

.text-secondary {
    color: var(--text-secondary);
    cursor: default;
}

.text-muted {
    color: var(--text-muted);
    cursor: default;
}

.text-subtle {
    color: var(--text-subtle);
    cursor: default;
}

/* Enhanced Gradient Text with Animation */
.gradient-text {
    background: var(--gradient-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    animation: gradientShift 4s ease-in-out infinite reverse;
    transition: opacity var(--animation-duration-slow) var(--animation-easing);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Spacing Scale */
.spacing-xs {
    margin-bottom: 0.5rem;
}

.spacing-sm {
    margin-bottom: 0.75rem;
}

.spacing-md {
    margin-bottom: 1rem;
}

.spacing-lg {
    margin-bottom: 1.5rem;
}

.spacing-xl {
    margin-bottom: 2rem;
}

.spacing-2xl {
    margin-bottom: 3rem;
}

/* Enhanced Section Spacing */
section {
    padding: 5rem 0;
    cursor: default; /* Fix cursor for sections */
}

@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 8rem 0;
    }
}

/* Enhanced Container Spacing */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Enhanced Button Typography */
.btn {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Enhanced Navigation Typography */
nav a {
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.4;
}

/* Enhanced Card Typography */
.glass-card h3 {
    color: #F0F6FC;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.glass-card p {
    color: #8B949E;
    line-height: 1.6;
}