/* Background Animation Styles */

/* Base animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 204, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 204, 255, 0.6));
    }
}

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

/* Simple page fade-in animation */
.grid-layout {
    opacity: 0;
    animation: simpleFadeIn 0.5s ease-out 0.2s both;
}

.fixed-footer {
    opacity: 0;
    animation: simpleFadeIn 0.5s ease-out 0.2s both;
}

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


/* Glow effect for title - DISABLED */
.title-main {
    /* animation: fadeInScale 1.2s ease-out 0.2s both, glow 3s ease-in-out infinite 2s; */
}

/* Hover animations - DISABLED */
.platform-btn {
    position: relative;
    overflow: hidden;
}

.platform-btn:hover {
    /* animation: pulse 0.6s ease-in-out; */
}

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

/* Particle-like background elements (CSS fallback) */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 204, 255, 0.5);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(odd) {
    animation: float 10s ease-in-out infinite reverse;
}

.particle:nth-child(3n) {
    background: rgba(0, 102, 255, 0.4);
    animation: pulse 4s ease-in-out infinite;
}

.particle:nth-child(5n) {
    background: rgba(255, 255, 255, 0.3);
    animation: float 12s ease-in-out infinite, pulse 6s ease-in-out infinite;
}

/* Connection lines (CSS fallback) */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 204, 255, 0.2) 50%,
        transparent 100%
    );
    animation: pulse 8s ease-in-out infinite;
}

/* Responsive animation adjustments - SIMPLIFIED */
@media (max-width: 768px) {
    .grid-layout,
    .fixed-footer {
        animation-duration: 0.3s;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }


    .particle,
    .connection-line {
        display: none;
    }

    .title-main {
        filter: none;
        animation: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .platform-btn:hover {
        /* No animations */
    }

}

/* Print styles */
@media print {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .background-particles,
    .particle,
    .connection-line {
        display: none !important;
    }
}