/* ============================================
   🌟 GOOGLE GEMINI STYLE EFFECTS
   ============================================ */

/* Animated Gradient Mesh Background (як у Gemini) */
.gemini-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(140deg,
            rgba(99, 102, 241, 0.05) 0%,
            transparent 50%),
        linear-gradient(220deg,
            rgba(139, 92, 246, 0.05) 0%,
            transparent 50%),
        linear-gradient(320deg,
            rgba(236, 72, 153, 0.05) 0%,
            transparent 50%);
    background-size: 200% 200%;
    animation: geminiMeshMove 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes geminiMeshMove {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }

    33% {
        background-position: 100% 0%, 0% 100%, 100% 50%;
    }

    66% {
        background-position: 50% 100%, 50% 0%, 0% 100%;
    }
}

/* Floating Gradient Orbs (як у Gemini) */
.gemini-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: geminiFloat 25s ease-in-out infinite;
    will-change: transform;
}

.gemini-orb-1 {
    top: 10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(99, 102, 241, 0.4) 0%,
            rgba(99, 102, 241, 0.1) 50%,
            transparent 100%);
    animation-delay: 0s;
}

.gemini-orb-2 {
    top: 50%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(139, 92, 246, 0.4) 0%,
            rgba(139, 92, 246, 0.1) 50%,
            transparent 100%);
    animation-delay: 8s;
}

.gemini-orb-3 {
    bottom: 10%;
    left: 30%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle,
            rgba(236, 72, 153, 0.4) 0%,
            rgba(236, 72, 153, 0.1) 50%,
            transparent 100%);
    animation-delay: 16s;
}

@keyframes geminiFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(40px, 40px) scale(1.05);
    }
}

/* Subtle Grid Lines (як у Gemini) */
.gemini-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

/* Shimmer Effect (як у Gemini при наведенні) */
.gemini-shimmer {
    position: relative;
    overflow: hidden;
}

.gemini-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.gemini-shimmer:hover::before {
    left: 100%;
}

/* Pulsing Glow (як у Gemini для акцентів) */
.gemini-glow {
    animation: geminiPulse 3s ease-in-out infinite;
}

@keyframes geminiPulse {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(99, 102, 241, 0.3),
            0 0 40px rgba(99, 102, 241, 0.2),
            0 0 60px rgba(99, 102, 241, 0.1);
    }

    50% {
        box-shadow:
            0 0 30px rgba(99, 102, 241, 0.4),
            0 0 60px rgba(99, 102, 241, 0.3),
            0 0 90px rgba(99, 102, 241, 0.2);
    }
}

/* Gradient Text (як у Gemini) */
.gemini-text {
    background: linear-gradient(135deg,
            #6366f1 0%,
            #8b5cf6 25%,
            #ec4899 50%,
            #f59e0b 75%,
            #10b981 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: geminiGradientShift 8s ease-in-out infinite;
}

@keyframes geminiGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Smooth Fade In (як у Gemini) */
.gemini-fade-in {
    animation: geminiFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes geminiFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation для елементів списку */
.gemini-stagger-1 {
    animation-delay: 0.1s;
}

.gemini-stagger-2 {
    animation-delay: 0.2s;
}

.gemini-stagger-3 {
    animation-delay: 0.3s;
}

.gemini-stagger-4 {
    animation-delay: 0.4s;
}

.gemini-stagger-5 {
    animation-delay: 0.5s;
}

.gemini-stagger-6 {
    animation-delay: 0.6s;
}

/* Smooth Card Hover (як у Gemini) */
.gemini-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.gemini-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 20px 40px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* Ripple Effect (як у Gemini при кліку) */
.gemini-ripple {
    position: relative;
    overflow: hidden;
}

.gemini-ripple::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;
}

.gemini-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Breathing Animation (як у Gemini для важливих елементів) */
.gemini-breathe {
    animation: geminiBreathe 4s ease-in-out infinite;
}

@keyframes geminiBreathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Parallax Scroll Effect */
.gemini-parallax {
    transition: transform 0.3s ease-out;
}

/* Glass Morphism (як у Gemini) */
.gemini-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Noise Texture (як у Gemini для глибини) */
.gemini-noise {
    position: relative;
}

.gemini-noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}