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

:root {
    --eldr-teal: #29abc2;
    --eldr-mustard: #f9c851;
    --eldr-dark: #0a3d45;
    --eldr-gray: #f4f7f8;
    --apple-blur: saturate(180%) blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --card-shadow: 0 8px 32px 0 rgba(10, 61, 69, 0.08);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #f8fafb;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--eldr-dark);
}

/* Glass Navigation */
.nav-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--apple-blur);
    -webkit-backdrop-filter: var(--apple-blur);
    border-bottom: 1px solid rgba(10, 61, 69, 0.05);
}

/* Section Transitions */
section {
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1), filter 0.8s ease;
    will-change: transform, opacity;
}

.section-past {
    opacity: 0.1 !important;
    filter: blur(10px) brightness(0.9);
    transform: scale(0.95) translateY(-50px);
    pointer-events: none;
}

/* Animations - Apple's Spring Curves */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.active {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Bento Cards */
.bento-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid rgba(10, 61, 69, 0.05);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(10, 61, 69, 0.12);
}

/* Phone Mockup Styling */
.phone-frame {
    background: white;
    border-radius: 3rem;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.phone-inner {
    border-radius: 2.25rem;
    overflow: hidden;
    background: #fff;
    height: 100%;
    position: relative;
}

/* Hero Gradient */
.hero-radial {
    background: radial-gradient(circle at 70% 30%, rgba(41, 171, 194, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(249, 200, 81, 0.05) 0%, transparent 40%),
        #ffffff;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.floating {
    animation: float 8s ease-in-out infinite;
}

/* Smooth Tabs */
.ios-tab {
    position: relative;
    transition: all 0.3s ease;
}

.ios-tab-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--eldr-teal);
    border-radius: 2px;
}

/* Button Refinements */
.btn-primary {
    background: var(--eldr-teal);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(41, 171, 194, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(41, 171, 194, 0.5);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}