/* CloudFlow Design System - Global Styles */

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neumorphism Dark */
.neumorph {
    background: linear-gradient(145deg, #1e1e2e, #252535);
    box-shadow: 20px 20px 60px #1a1a28, -20px -20px 60px #2a2a3a;
}

.neumorph-inset {
    background: linear-gradient(145deg, #252535, #1e1e2e);
    box-shadow: inset 5px 5px 10px #1a1a28, inset -5px -5px 10px #2a2a3a;
}

.neumorph-flat {
    background: #212132;
    box-shadow: 5px 5px 15px #1a1a28, -5px -5px 15px #282839;
}

/* Hover Animations */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Gradient Animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Progress Animation */
@keyframes progress {
    0% { width: 0%; }
}

.progress-bar {
    animation: progress 1.5s ease-out forwards;
}

/* Cursor Glow */
.cursor-glow {
    cursor: pointer;
    transition: all 0.3s ease;
}

.cursor-glow:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Grid Background */
.grid-bg {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

/* Organic Blob */
.blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    filter: blur(40px);
    opacity: 0.7;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a28;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* Service Card Hover */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Chart Line Animation */
.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s ease-out forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* Tooltip */
.tooltip {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-trigger:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Toggle/Switch Custom Styling */
.toggle-checkbox:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.toggle-checkbox:checked ~ .toggle-label {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Radio & Checkbox Custom */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}