/* ================================
   Kliky Tech Server - Custom Styles
   ================================ */

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: linear-gradient(135deg, #f472b6, #fb923c, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero background pattern */
.hero-pattern {
    background-image: 
        radial-gradient(ellipse 800px 600px at 50% 0%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 600px 400px at 80% 20%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 400px 300px at 20% 60%, rgba(59, 130, 246, 0.06), transparent);
}

/* Grid background */
.grid-bg {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 0 80px rgba(99, 102, 241, 0.05);
}

.glow-violet {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15), 0 0 80px rgba(139, 92, 246, 0.05);
}

/* Pricing card popular */
.pricing-popular {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
    border-color: rgba(139, 92, 246, 0.3);
}

.pricing-popular:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px -15px rgba(139, 92, 246, 0.2);
}

/* Feature card icon background */
.feature-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection color */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Animated gradient border */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc, #818cf8);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

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

/* Testimonial card */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* FAQ transition */
.faq-answer {
    transition: all 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Stat counter animation */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn-ripple:hover::after {
    transform: scale(2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-pattern {
        background-image: 
            radial-gradient(ellipse 400px 300px at 50% 0%, rgba(99, 102, 241, 0.12), transparent);
    }
}
