/* style.css - Premium Accounting Custom Styles */

/* Base & Global Styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #090D16;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 9999px;
    border: 2px solid #090D16;
}
::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* Glassmorphism Classes - Highly Optimized for Scroll Performance (No heavy scrolling backdrop blurs) */
.glass {
    background: rgba(13, 18, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.glass-nav {
    background: rgba(9, 13, 22, 0.8);
    /* Keep blur only on the fixed header navbar where it's single and visible */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.glass-card {
    background: rgba(13, 18, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.glass-card:hover {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translate3d(0, -5px, 0);
    -webkit-transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.05);
}

/* Background floating blobs - Optimized with radial gradients instead of heavy filter blurs */
#bg-blob-1 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, rgba(16, 185, 129, 0) 70%);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#bg-blob-2 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, rgba(59, 130, 246, 0) 70%);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#bg-blob-3 {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, rgba(245, 158, 11, 0) 70%);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Glow Border & Shine Effects */
.glow-border {
    position: relative;
    border-radius: 1rem;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.3));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-border:hover::after {
    opacity: 1;
}

/* Specific glowing class for Recommended Pricing Plan */
.recommended-plan {
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.recommended-plan::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #10B981, #3B82F6, #F59E0B);
    border-radius: 1.5rem; /* Match card roundedness */
    z-index: -1;
    opacity: 0.4;
    filter: blur(1px);
}

/* Pulsing / Glowing Ring around buttons */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

/* Wiggle animation for widget icon */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-12deg); }
    30% { transform: rotate(14deg); }
    45% { transform: rotate(-4deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(-2deg); }
}

.animate-wiggle {
    animation: wiggle 1.2s ease-in-out infinite;
}

/* Marquee Testimonials Carousel */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #090D16, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #090D16, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Accordion Transitions - Managed purely via GSAP in main.js to avoid double-transition conflicts */
.accordion-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.accordion-item .accordion-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

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

/* Input validation styles */
.input-success {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
}

.input-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15) !important;
}
