/* ========================================
   FRUSH - Custom Animations & Styles
   ======================================== */

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

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

/* Floating Animation for Hero Blobs */
@keyframes float {

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

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

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

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In from Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In from Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Fade In Section - Triggered by Intersection Observer */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

/* Card Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Icon Rotate on Hover */
.hover-rotate:hover {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

/* Scale on Hover */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.4);
}

/* ========================================
   NAVBAR ANIMATIONS
   ======================================== */

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 77, 77, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Nav Link Underline Effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   BUTTON ANIMATIONS
   ======================================== */

/* Button Hover Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   LOADING ANIMATIONS
   ======================================== */

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Parallax Effect */
.parallax {
    transition: transform 0.5s ease-out;
}

/* Smooth Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   GRADIENT BACKGROUNDS
   ======================================== */

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* ========================================
   MOBILE MENU ANIMATIONS
   ======================================== */

/* Mobile Menu Slide */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

/* ========================================
   FORM ANIMATIONS
   ======================================== */

/* Input Focus Effect */
input:focus,
textarea:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* ========================================
   CARD ANIMATIONS
   ======================================== */

/* Card Entrance Animation */
.card-enter {
    animation: slideUp 0.6s ease-out;
}

/* Card Stagger Effect */
.card-stagger-1 {
    animation-delay: 0.1s;
}

.card-stagger-2 {
    animation-delay: 0.2s;
}

.card-stagger-3 {
    animation-delay: 0.3s;
}

.card-stagger-4 {
    animation-delay: 0.4s;
}

.card-stagger-5 {
    animation-delay: 0.5s;
}

.card-stagger-6 {
    animation-delay: 0.6s;
}

/* ========================================
   ICON ANIMATIONS
   ======================================== */

/* Icon Bounce on Hover */
.icon-bounce:hover {
    animation: pulse 0.6s ease;
}

/* Icon Spin */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.icon-spin {
    animation: spin 2s linear infinite;
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

/* Gradient Text Animation */
.gradient-text-animate {
    background: linear-gradient(90deg,
            #FF4D4D,
            #FF7A2F,
            #FF6B4D,
            #FF4D4D);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite;
}

/* Typing Effect */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF4D4D, #FF7A2F);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF7A2F, #FF4D4D);
}

/* ========================================
   UTILITY ANIMATIONS
   ======================================== */

/* Fade In Up */
.fade-in-up {
    animation: fadeIn 0.8s ease-out;
}

/* Bounce In */
.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

/* Scale In */
.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Slide In Left */
.slide-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

/* Slide In Right */
.slide-in-right {
    animation: fadeInRight 0.8s ease-out;
}