/* ===================================================
   MOHAMED SAYED — FLUTTER DEVELOPER PORTFOLIO (2026)
   Style Sheet: Animations, Keyframes & Parallax Background
   =================================================== */

/* ===================================================
   BACKGROUND PARALLAX ORBS
   =================================================== */
.parallax-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.parallax-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    -webkit-filter: blur(90px);
    pointer-events: none;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.parallax-circle-1 {
    top: -10%;
    right: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.18) 0%, rgba(131, 0, 0, 0.08) 50%, transparent 70%);
}

.parallax-circle-2 {
    top: 40%;
    left: -15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(188, 2, 2, 0.14) 0%, rgba(131, 0, 0, 0.05) 60%, transparent 70%);
}

.parallax-circle-3 {
    bottom: -10%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(90, 0, 0, 0.05) 55%, transparent 70%);
}

.parallax-circle-4 {
    top: 75%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(188, 2, 2, 0.12) 0%, transparent 65%);
}

/* ===================================================
   KEYFRAMES
   =================================================== */
@keyframes blinkCursor {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

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

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.35);
    }
    50% {
        box-shadow: 0 0 45px rgba(255, 0, 0, 0.65);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ===================================================
   SCROLL REVEAL UTILITY CLASSES
   =================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.reveal-left {
    transform: translateX(-40px);
}

.reveal-on-scroll.reveal-right {
    transform: translateX(40px);
}

.reveal-on-scroll.reveal-scale {
    transform: scale(0.92);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===================================================
   HERO ENTRANCE ANIMATIONS
   =================================================== */
.hero-entrance-fade {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-entrance-slide {
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   PREFERS REDUCED MOTION (ACCESSIBILITY)
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .progress-fill {
        transition: none !important;
    }

    .profile-ring-outer,
    .about-halo,
    .floating-badge {
        animation: none !important;
    }

    .parallax-circle {
        transition: none !important;
        transform: none !important;
    }
}
