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

body {
    font-family: 'Inter', sans-serif;
    /* Colors handled by Tailwind classes on body tag */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background: #020617;
    }
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb {
        background: #334155;
    }
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb:hover {
        background: #475569;
    }
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 100ms;
}

.reveal-delay-200 {
    transition-delay: 200ms;
}

.reveal-delay-300 {
    transition-delay: 300ms;
}

.scale-reveal {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-reveal.active {
    opacity: 1;
    transform: scale(1);
}

.blur-reveal {
    opacity: 0;
    filter: blur(10px);
    transition: all 1.5s ease-out;
}

.blur-reveal.active {
    opacity: 1;
    filter: blur(0);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, #ffb366, #ff6b35, #D25327);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3D Card Effect */
.perspective-container {
    perspective: 1000px;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

/* Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
    .bg-grid {
        background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    }
}

/* Mask Utilities */
.mask-gradient-bottom {
    mask-image: linear-gradient(to bottom, black 75%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 95%);
}

/* Tooltip Styles */
.has-tooltip {
    border-bottom: 1px dotted #94a3b8;
    cursor: help;
}

.tooltip-popup {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    transform: translateY(4px) scale(0.98);
}

.tooltip-popup.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}
