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

:root {
    --ease-out-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Animations --- */

/* Fade In Up (Standard Reveal) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

/* Scroll Reveal (JS Triggered) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    will-change: opacity, transform;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delays */
.delay-100 { transition-delay: 100ms; animation-delay: 100ms; }
.delay-200 { transition-delay: 200ms; animation-delay: 200ms; }
.delay-300 { transition-delay: 300ms; animation-delay: 300ms; }
.delay-500 { transition-delay: 500ms; animation-delay: 500ms; }
.delay-1000 { transition-delay: 1000ms; animation-delay: 1000ms; }

/* Blob Backgrounds */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 10s infinite;
}

.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

::selection {
    background: #000;
    color: #fff;
}

/* Image Shadows & Corners */
.app-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

/* 3D Perspective Context */
.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.parallax-card, .parallax-emoji, .parallax-phone {
    will-change: transform;
    /* transition: transform 0.1s linear; */ /* Can be smoother without transition if using requestAnimationFrame */
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.5s var(--ease-out-expo) forwards;
}
