/* ISPOS Custom Styles */

.glassmorphism {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.dark .glassmorphism {
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: #2563EB;
}

.dark .swiper-button-next,
.dark .swiper-button-prev {
    color: #06B6D4;
}

.swiper-pagination-bullet-active {
    background: #2563EB !important;
}

.dark .swiper-pagination-bullet-active {
    background: #06B6D4 !important;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.5rem;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.faq-answer.active {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.faq-answer.hidden {
    display: none;
}

.faq-icon-rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Counter animation styles */
.counter {
    display: inline-block;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Mobile menu transition */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #06B6D4);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-align: center;
}
@media (min-width: 640px) {
    .sticky-cta { padding: 12px 24px; gap: 16px; }
}
.sticky-cta.visible {
    transform: translateY(0);
}

/* Spotlight Mouse Follow */
.spotlight {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: left 0.2s ease, top 0.2s ease;
}
.dark .spotlight {
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
}

/* Hero Dashboard Bar Animation */
.hero-bar {
    transform-origin: bottom;
    animation: growBar 0.8s ease-out forwards;
    transform: scaleY(0);
}
@keyframes growBar {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* Floating Notification Toasts */
.floating-toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    z-index: 90;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.floating-toast.show {
    transform: translateX(0);
}

/* 3D Card Tilt Base */
.hover\:shadow-xl,
.hover\:shadow-lg {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Magnetic Button Transition */
a[href="#demo"],
button[type="submit"] {
    transition: transform 0.3s ease;
}

/* Ecosystem Node Glow Transition */
#ecosystem .bg-white\/10 {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Popular Pricing Card Pulse */
.bg-gradient-to-br.from-secondary.to-blue-700 {
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.3); }
    50% { box-shadow: 0 0 40px rgba(37,99,235,0.6); }
}

/* Smooth counter number transition */
.counter {
    transition: all 0.3s ease;
}

/* Hero bar chart bars animation */
section.min-h-screen .bg-secondary\/80 {
    animation: bar-grow 1.5s ease-out forwards;
    transform-origin: bottom;
}
@keyframes bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* FAQ smooth expand */
.faq-item {
    transition: all 0.3s ease;
}
.faq-item:hover {
    transform: translateX(4px);
}

/* Pricing toggle button active glow */
.pricing-toggle.bg-secondary {
    box-shadow: 0 0 15px rgba(37,99,235,0.4);
}

/* Testimonial card hover lift */
.testimonial-swiper .swiper-slide > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-swiper .swiper-slide > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Screenshot card hover zoom */
.screenshot-swiper .swiper-slide > div {
    transition: transform 0.4s ease;
}
.screenshot-swiper .swiper-slide > div:hover {
    transform: scale(1.03);
}

/* Button ripple effect */
a[href="#demo"]::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}
a[href="#demo"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}
a[href="#demo"]:active::after,
button[type="submit"]:active::after {
    width: 200%;
    height: 200%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}
.dark ::-webkit-scrollbar-thumb {
    background: #06B6D4;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .floating-toast { display: none !important; }
    .scroll-progress { display: none !important; }
    .sticky-cta { display: none !important; }
}
