@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

html {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Visual Upgrades: gradients, card hover scales, subtle parallax transforms */

/* Parallax Effect */
.parallax-container {
    perspective: 1px;
    transform-style: preserve-3d;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

/* Smooth transform for background */
.parallax-bg {
    transition: transform 0.8s ease-out;
    will-change: transform;
}

/* Subtle card scale on hover and accessibility-friendly focus */
.card-hover {
    transition: transform 180ms cubic-bezier(.2,.9,.2,1), box-shadow 180ms;
    transform-origin: center;
    will-change: transform;
}
.card-hover:hover,
.card-hover:focus-within {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(2,6,23,0.35);
}

/* Button gradients */
.btn-gradient {
    background: linear-gradient(90deg, #0ea5a4, #06b6d4);
    color: white;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.btn-gradient:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 24px rgba(6,95,70,0.15); }

/* Ensure accessible contrast in dark & light */
body.light {
    --surface: #ffffff;
    --muted: #475569;
    --text: #0f172a;
}
body.dark {
    --surface: #071025;
    --muted: #94a3b8;
    --text: #e6eef8;
}

/* Prose improvements */
.prose img { border-radius: 8px; }

/* Utility for subtle divider */
.hr-soft { border-color: rgba(100,116,139,0.08); }

/* Text Selection */
::selection {
    background: #38bdf8;
    color: #000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-up {
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Prose Styling for Content */
.prose h3 {
    scroll-margin-top: 6rem;
}

.prose table {
    width: 100%;
    display: table;
}

/* Text Selection */
::selection {
    background: #38bdf8;
    color: #000;
}

/* Visual card styles for the hero quick-highlights */
.meta-card {
    transition: transform 200ms cubic-bezier(.2,.9,.2,1), box-shadow 200ms;
    backdrop-filter: blur(6px);
    will-change: transform;
}
.meta-card:hover, .meta-card:focus-within {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(2,6,23,0.24);
}