/* ====================================
   SCROLL ANIMATIONS & INTERACTIONS
   ==================================== */

/* Fade-in animation base */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Slide-in from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-in from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-in animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for sequential animations */
.stagger-1 {
    transition-delay: 0.1s;
}

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

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

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

/* ====================================
   MOBILE-SPECIFIC ANIMATIONS
   ==================================== */

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.fab.visible {
    opacity: 1;
    transform: scale(1);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

.fab svg {
    width: 30px;
    height: 30px;
    color: white;
}

/* Touch feedback */
.touch-feedback {
    position: relative;
    overflow: hidden;
}

.touch-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.touch-feedback:active::after {
    width: 300px;
    height: 300px;
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    color: var(--accent-blue);
    opacity: 0.6;
}

/* Pull-to-refresh feel (visual only) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

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

.loading-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu-overlay a {
    font-family: var(--font-title);
    font-size: 2rem;
    color: white;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active a:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active a:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-menu-overlay a:hover {
    color: var(--accent-blue);
    transform: translateX(10px);
}

/* Hamburger icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
    position: relative;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-carbon);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .fab {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    /* Ensure menu icon is visible */
    .menu-icon {
        display: flex !important;
        z-index: 10001;
    }
}

```