/* ProKit Flutter UI Inspired Styles - Enhanced Edition */

/* Import Animations */
@import url('animations.css');

/* Root Variables for Easy Customization */
:root {
    --primary-color: #10b981;
    --secondary-color: #0891b2;
    --accent-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --animation-duration: 0.3s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Glassmorphic Effects */
.glassmorphic-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Glassmorphic Shine Effect */
.glassmorphic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.glassmorphic-card:hover::before {
    animation: shimmer 0.5s ease-out;
    opacity: 1;
}

.glassmorphic-dark {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Pricing Card Styles with 3D Effects */
.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Card Inner Glow */
.pricing-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #0891b2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.popular {
    border: 2px solid #10b981;
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(90deg, #10b981 0%, #0891b2 100%);
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
}

/* Disable ALL hover effects for popular cards / Matikan SEMUA hover untuk kad popular */
.pricing-card.popular:hover::before,
.pricing-card.popular:hover::after {
    /* No hover effects - keep everything as default / Tiada hover - kekalkan default */
    opacity: 1 !important;
}

/* Override main hover for popular card - no movement, shadow, or border changes */
/* Buang semua kesan hover untuk kad popular - tiada pergerakan, bayangan, atau perubahan border */
.pricing-card.popular:hover {
    transform: scale(1.05) !important;  /* Keep original scale, no translateY */
    box-shadow: none !important;  /* No shadow change on hover */
    border-color: #10b981 !important;  /* Keep original green border */
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-card.highlight {
    background: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
    color: white;
}

.feature-card.highlight .feature-icon {
    background: white;
    color: #10b981;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
}

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

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(102, 126, 234, 0.1);
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Integration Logos */
.integration-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.integration-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 100;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b3aa0 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* ========================================
   ENHANCED UI EFFECTS
   ======================================== */

/* Neumorphism Elements */
.neumorphic {
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: 
        9px 9px 16px #a3b1c6,
        -9px -9px 16px #ffffff;
    transition: all 0.3s ease;
}

.neumorphic:hover {
    box-shadow: 
        5px 5px 10px #a3b1c6,
        -5px -5px 10px #ffffff;
}

.neumorphic-pressed {
    box-shadow: 
        inset 5px 5px 10px #a3b1c6,
        inset -5px -5px 10px #ffffff;
}

/* Aurora Background Effect */
.aurora-bg {
    position: relative;
    overflow: hidden;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(16, 185, 129, 0.3),
        rgba(8, 145, 178, 0.3),
        rgba(139, 92, 246, 0.3)
    );
    animation: gradientFlow 15s ease infinite;
    filter: blur(40px);
}

/* Liquid Button Effect */
.liquid-btn {
    position: relative;
    padding: 20px 40px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.liquid-btn::before {
    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;
}

.liquid-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Morphing Cards */
.morph-card {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Neon Glow Effects */
.neon-text {
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color),
        0 0 40px var(--primary-color);
    animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--primary-color);
    }
    50% {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 15px var(--primary-color),
            0 0 20px var(--primary-color);
    }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(
        45deg,
        #ff0080,
        #ff8c00,
        #40e0d0,
        #ff0080
    );
    background-size: 300% 300%;
    animation: holographic-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Frosted Glass Navigation */
.nav-frosted {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(200%);
    -webkit-backdrop-filter: blur(10px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-frosted.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animated Gradient Border */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 3px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        45deg,
        #10b981,
        #0891b2,
        #8b5cf6,
        #10b981
    );
    background-size: 300% 300%;
    animation: gradient-border-animation 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes gradient-border-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Spotlight Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    color: white;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(16, 185, 129, 0.4) 0%,
        transparent 50%
    );
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* Elastic Button */
.elastic-btn {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elastic-btn:hover {
    transform: scale(1.1);
}

.elastic-btn:active {
    transform: scale(0.9);
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s;
}

.text-reveal:hover::after {
    left: 100%;
}

/* Bubble Animation Background */
.bubble-bg {
    position: relative;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: bubble-rise 10s infinite ease-in;
}

@keyframes bubble-rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(100px) scale(1.2);
    }
    100% {
        bottom: 110%;
        transform: translateX(-100px) scale(0.8);
    }
}

/* Geometric Pattern Background */
.geometric-bg {
    background-color: #10b981;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    animation: geometric-shift 20s linear infinite;
}

@keyframes geometric-shift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 70px 0, -70px 0; }
}

/* Card Hover Lift with Shadow */
.card-hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 80px rgba(16, 185, 129, 0.1);
}

/* Interactive Glow Follow */
.glow-follow {
    position: relative;
    overflow: hidden;
}

.glow-follow::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glow-follow:hover::before {
    opacity: 1;
}

/* Smooth Transform Origin */
.smooth-transform {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Color Shift on Scroll */
.color-shift {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile Touch Feedback */
@media (hover: none) {
    .touch-feedback {
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2);
    }
    
    .touch-feedback:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}