/* 
* Auto Select - Animations Styles
* Vaporwave/futuristic theme animations
*/

/* ===== Keyframes ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

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

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

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

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(255, 0, 255, 0.8),
            0 0 15px rgba(255, 0, 255, 0.6),
            0 0 20px rgba(255, 0, 255, 0.4);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* ===== Animation Classes ===== */
.animated-svg {
    animation: float 6s ease-in-out infinite;
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

.rotate-effect {
    animation: rotate 15s linear infinite;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.pulse-effect {
    animation: pulse 2s infinite;
}

.neon-flicker {
    animation: neonFlicker 3s infinite alternate;
}

/* Apply shimmering gradient effect to buttons */
.btn-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 0, 255, 0.7) 0%, 
        rgba(0, 229, 255, 0.7) 50%, 
        rgba(255, 0, 255, 0.7) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

/* ===== Scroll Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Element reveal animations with delay */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

.reveal-delay-400 {
    transition-delay: 0.4s;
}

.reveal-delay-500 {
    transition-delay: 0.5s;
}

/* ===== Cursor Effects ===== */
.cursor-glow {
    cursor: none;
    position: relative;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 0, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* ===== Page Transition Effects ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* ===== Text Animation Effects ===== */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal span {
    display: block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.text-reveal.active span {
    transform: translateY(0);
}

.text-gradient {
    background: linear-gradient(
        45deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* ===== Button Hover Animations ===== */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.btn-hover-effect:hover:before {
    width: 100%;
}

/* ===== Card Hover Effects ===== */
.card-hover-rise {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-rise:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-hover-glow {
    transition: box-shadow 0.3s ease;
}

.card-hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* ===== Image Hover Effects ===== */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

.img-hover-rotate img {
    transition: transform 0.5s ease;
}

.img-hover-rotate:hover img {
    transform: rotate(5deg) scale(1.05);
}

/* ===== Loader Animation ===== */
.loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loader:after {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--secondary-color) transparent;
    animation: rotate 1.2s linear infinite;
}

/* ===== Scroll Down Indicator ===== */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

.scroll-down span {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.scroll-down-arrow {
    width: 30px;
    height: 30px;
    position: relative;
}

.scroll-down-arrow:before, .scroll-down-arrow:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 15px;
    background: var(--text-light);
}

.scroll-down-arrow:before {
    transform: translateX(-50%) rotate(-45deg);
}

.scroll-down-arrow:after {
    transform: translateX(-50%) rotate(45deg);
}

.scroll-down-arrow {
    animation: float 2s ease-in-out infinite;
}

/* ===== Form Input Animations ===== */
.input-effect {
    position: relative;
}

.input-effect label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-effect input:focus + label,
.input-effect input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    background: var(--background-dark);
    padding: 0 5px;
}

.input-effect input {
    border: 1px solid var(--text-muted);
    padding: 10px 15px;
    width: 100%;
    background: transparent;
    color: var(--text-light);
}

.input-effect input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-effect input::placeholder {
    opacity: 0;
}

/* ===== Progress Bar Animation ===== */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

/* ===== Mobile Menu Animation ===== */
.menu-icon {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-light);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2),
.menu-icon span:nth-child(3) {
    top: 9px;
}

.menu-icon span:nth-child(4) {
    top: 18px;
}

.menu-icon.open span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.menu-icon.open span:nth-child(2) {
    transform: rotate(45deg);
}

.menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.menu-icon.open span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

/* ===== Responsive Animations ===== */
@media screen and (max-width: 768px) {
    .animated-svg {
        animation-duration: 4s;
    }
    
    .neon-text {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.6),
            0 0 10px rgba(255, 0, 255, 0.6);
    }
}
