﻿/**
 * Swyfttrade - Background Patterns
 * Wavy and Circular Design Elements
 */

/* Wavy Background Pattern */
.wavy-bg {
    position: relative;
    overflow: hidden;
}

.wavy-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(17, 119, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(17, 119, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(17, 119, 58, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* SVG Wavy Pattern */
.wavy-svg-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 0;
}

.wavy-svg-bg svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wavy-svg-bg path {
    fill: var(--bg-secondary);
}

/* Circular Gradient Pattern */
.circular-gradient-bg {
    position: relative;
    overflow: hidden;
}

.circular-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(17, 119, 58, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(17, 119, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(17, 119, 58, 0.08) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Circles Animation */
.floating-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(17, 119, 58, 0.1);
    animation: float 15s infinite ease-in-out;
}

.floating-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

.floating-circle:nth-child(4) {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.2;
    }
}

/* Grid Pattern Background */
.grid-pattern-bg {
    position: relative;
}

.grid-pattern-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(17, 119, 58, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 119, 58, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Animated Gradient Mesh */
.mesh-gradient-bg {
    position: relative;
    overflow: hidden;
}

.mesh-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(17, 119, 58, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(17, 119, 58, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(17, 119, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(17, 119, 58, 0.06) 0%, transparent 40%);
    animation: meshMove 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Content Wrapper - Bring to Front */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Pulse Animation for Hero */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(17, 119, 58, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Section Dividers with Wave */
.wave-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-divider path {
    fill: var(--bg-secondary);
}



