/* Modern Animations for OASSE Rebranding */

/* ========== HERO BANNER ANIMATIONS ========== */

/* Floating animation for hero illustration */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse glow effect on hover */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(255, 105, 16, 0.3);
    }
}

.hero-content:hover .hero-illustration {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Particle effect overlay */
.rebrand-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(255, 105, 16, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 100px 100px;
    animation: particleMove 20s linear infinite;
    pointer-events: none;
}

@keyframes particleMove {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 50px 50px, -80px 80px, 100px -100px;
    }
}

/* ========== BUTTON ANIMATIONS ========== */

/* Modern button hover with scale and glow */
.btn-orange {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-orange::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-orange:hover::before {
    width: 300px;
    height: 300px;
}

.btn-orange:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 105, 16, 0.5);
}

/* Button ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.btn-ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* ========== CARD ANIMATIONS ========== */

/* Solution card entrance animation */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-card {
    animation: cardSlideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.solution-card:nth-child(1) {
    animation-delay: 0.1s;
}

.solution-card:nth-child(2) {
    animation-delay: 0.2s;
}

.solution-card:nth-child(3) {
    animation-delay: 0.3s;
}

.solution-card:nth-child(4) {
    animation-delay: 0.4s;
}

.solution-card:nth-child(5) {
    animation-delay: 0.5s;
}

.solution-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Card hover effect with 3D tilt */
.solution-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.solution-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(21, 56, 146, 0.2);
}

.solution-card .icon-wrapper {
    transition: transform 0.3s ease;
}

.solution-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* ========== NAVBAR ANIMATIONS ========== */

/* Smooth navbar appearance */
@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-area {
    animation: navSlideDown 0.5s ease-out;
}

/* Navbar link hover effect */
.navbar-nav li a {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6910, #00D4FF);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav li a:hover::after {
    width: 80%;
}

/* Dropdown animation */
.sub-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* ========== SCROLL ANIMATIONS ========== */

/* Fade in on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animation for list items */
.stagger-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* ========== ICON ANIMATIONS ========== */

/* Icon bounce on hover */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.value-card:hover .icon {
    animation: iconBounce 0.6s ease;
}

/* Icon rotation */
@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.icon-rotate:hover {
    animation: iconRotate 0.8s ease;
}

/* ========== STATS COUNTER ANIMATION ========== */

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-item .number {
    animation: countUp 1s ease-out;
}

/* ========== CURSOR EFFECTS ========== */

/* Custom cursor trail effect */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6), transparent);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Magnetic button effect */
.btn-magnetic {
    transition: transform 0.2s ease;
}

/* ========== LOADING ANIMATIONS ========== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========== RESPONSIVE ANIMATIONS ========== */

@media (max-width: 768px) {

    /* Reduce animation intensity on mobile */
    .hero-float {
        animation-duration: 8s;
    }

    .solution-card:hover {
        transform: translateY(-5px);
    }

    /* Disable 3D effects on mobile for performance */
    .solution-card {
        transform-style: flat;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== PARALLAX EFFECT ========== */

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
}

/* ========== TEXT ANIMATIONS ========== */

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(255, 105, 16, 0.5);
    }
}

.text-glow-animate {
    animation: textGlow 3s ease-in-out infinite;
}

/* Typing effect */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #FF6910;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #FF6910;
    }
}