/* Core Base Styling Rules */
body {
    background-color: #FFFDF8;
    color: var(--body-color, #0F172A);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Accessibility focus styles */
*:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--secondary-color, #175CD3);
}

/* 1. Animated background blobs/gradients */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-sky {
    background: linear-gradient(-45deg, #FFFDF8, #EAF6FF, #FFFDF8, #FAF9F6);
    background-size: 300% 300%;
    animation: gradientShift 18s ease infinite;
}

/* 2. Flight path dashed animations */
@keyframes flightDash {
    to {
        stroke-dashoffset: -120;
    }
}

.flight-path-dashed {
    stroke-dasharray: 10, 10;
    animation: flightDash 40s linear infinite;
}

/* 3. Floating airplane movement */
@keyframes gentlePlane {
    0% { transform: translateY(0px) translateX(0px) rotate(-45deg); }
    50% { transform: translateY(-8px) translateX(5px) rotate(-43deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(-45deg); }
}

.animate-gentle-plane {
    animation: gentlePlane 7s ease-in-out infinite;
}

/* 4. Layered wave background clip styling */
.wave-svg-accent {
    fill: #EAF6FF;
}

/* 5. Custom layout elements */
.rounded-card {
    border-radius: 1.25rem;
}

/* Safe Area offset for mobile bottom navigation bar */
.pb-safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Scroll reveal utility classes (activated via JS IntersectionObserver) */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Respect user preferences regarding motion reduction */
@media (prefers-reduced-motion: reduce) {
    .reveal-fade-up {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .flight-path-dashed,
    .animate-gradient-sky,
    .animate-gentle-plane {
        animation: none !important;
    }
}

/* 6. Utility to hide scrollbars on swipable horizontal carousels */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
