/* Base Typography & Theme */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    background: #ffffff;
}

.apple-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-link-home {
    color: #1d1d1f;
}

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

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(6deg) scale(1.03); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-6deg) scale(1.03); }
}

.animate-wiggle {
    animation: wiggle 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-down {
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Circular Progress Animation */
.progress-circle-anim {
    stroke-dasharray: 277;
    stroke-dashoffset: 277;
    animation: progress-circle-clockwise 8s linear infinite;
}

@keyframes progress-circle-clockwise {
    from { stroke-dashoffset: 277; }
    to { stroke-dashoffset: 0; }
}

/* Orbit Animation */
.sphere-group-anim {
    transform-origin: 50px 50px;
    animation: rotate-clockwise 8s linear infinite;
    will-change: transform;
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sphere-pulsate {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulsate 1.5s ease-in-out infinite;
}

@keyframes pulsate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Pro Elements */
.pro-badge {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Safari Blur Fix */
_::-webkit-full-page-media, _:future, :root .glass {
    background: rgba(255, 255, 255, 0.85);
}