/* Advanced Animations and Effects */

/* Wind Flow Effect - New Era Current */
.wind-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.wind-particle {
    position: absolute;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 169, 97, 0.2) 30%,
        rgba(74, 124, 142, 0.3) 50%,
        rgba(201, 169, 97, 0.2) 70%,
        transparent 100%);
    left: -150px;
    opacity: 0;
    filter: blur(0.5px);
}

.wind-particle:nth-child(1) {
    top: 25%;
    animation: windFlow 20s linear infinite;
    animation-delay: 0s;
}

.wind-particle:nth-child(2) {
    top: 50%;
    height: 2.5px;
    animation: windFlow 25s linear infinite;
    animation-delay: 8s;
}

.wind-particle:nth-child(3) {
    top: 75%;
    animation: windFlow 30s linear infinite;
    animation-delay: 15s;
}

@keyframes windFlow {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: translateX(20vw) translateY(-2px);
    }
    50% {
        opacity: 0.4;
        transform: translateX(60vw) translateY(1px);
    }
    90% {
        opacity: 0.2;
        transform: translateX(100vw) translateY(-1px);
    }
    100% {
        transform: translateX(110vw) translateY(0);
        opacity: 0;
    }
}

/* Enhanced wind particles with glow */
.wind-particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 200%;
    top: -50%;
    left: 0;
    background: inherit;
    filter: blur(3px);
    opacity: 0.5;
}

/* Magnetic cursor effect for interactive elements */
@media (hover: hover) {
    .service-card,
    .cta-button,
    .nav-link {
        transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    }
}

/* Premium text reveal animation */
.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: revealShine 3s ease-in-out infinite;
}

@keyframes revealShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Glitch effect for headers */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--color-accent);
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: var(--color-accent-blue);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0% {
        clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
        transform: translateX(-2px);
    }
    20% {
        clip-path: polygon(0 15%, 100% 15%, 100% 20%, 0 20%);
        transform: translateX(2px);
    }
    40% {
        clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
        transform: translateX(-2px);
    }
    60% {
        clip-path: polygon(0 40%, 100% 40%, 100% 55%, 0 55%);
        transform: translateX(2px);
    }
    80% {
        clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
        transform: translateX(-2px);
    }
    100% {
        clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%);
        transform: translateX(2px);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
        transform: translateX(2px);
    }
    20% {
        clip-path: polygon(0 3%, 100% 3%, 100% 8%, 0 8%);
        transform: translateX(-2px);
    }
    40% {
        clip-path: polygon(0 50%, 100% 50%, 100% 60%, 0 60%);
        transform: translateX(2px);
    }
    60% {
        clip-path: polygon(0 65%, 100% 65%, 100% 75%, 0 75%);
        transform: translateX(-2px);
    }
    80% {
        clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
        transform: translateX(2px);
    }
    100% {
        clip-path: polygon(0 85%, 100% 85%, 100% 95%, 0 95%);
        transform: translateX(-2px);
    }
}

/* Advanced parallax layers */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
}

.parallax-layer-1 {
    transform: translateZ(-1px) scale(1.1);
}

.parallax-layer-2 {
    transform: translateZ(-2px) scale(1.2);
}

.parallax-layer-3 {
    transform: translateZ(-3px) scale(1.3);
}

/* Morphing gradient background */
.morphing-gradient {
    background: linear-gradient(45deg, 
        var(--color-accent) 0%, 
        var(--color-accent-blue) 25%, 
        var(--color-accent) 50%, 
        var(--color-accent-blue) 75%, 
        var(--color-accent) 100%);
    background-size: 400% 400%;
    animation: morphGradient 15s ease infinite;
}

@keyframes morphGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Advanced hover states */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(201, 169, 97, 0.1);
}

/* Smooth scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Breathing animation */
.breathe {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Liquid button effect */
.liquid-button {
    position: relative;
    overflow: hidden;
}

.liquid-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.liquid-button:hover::before {
    width: 300%;
    height: 300%;
}

/* Neon glow effect */
.neon-glow {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor,
        0 0 40px currentColor;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor,
            0 0 40px currentColor;
    }
    to {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
}

/* 3D card flip */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Ambient light effect */
.ambient-light {
    position: relative;
}

.ambient-light::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(201, 169, 97, 0.1) 0%,
        transparent 70%
    );
    animation: ambientRotate 20s linear infinite;
    pointer-events: none;
}

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

/* Premium loading states */
.skeleton-loading {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.skeleton-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: skeletonWave 1.5s ease-in-out infinite;
}

@keyframes skeletonWave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}