/* ============================================
   SoftPlugin Pro — Custom Styles
   ============================================ */

/* ---- Smooth Scroll ---- */
html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* ---- Animations ---- */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out both;
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out both;
    animation-delay: 0.3s;
}

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

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

/* ---- Scroll Animation ---- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Active Nav Link ---- */
.nav-link.active {
    color: #fff;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* ---- FAQ Accordion ---- */
.faq-item {
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.3);
}

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

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

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content.show {
    max-height: 500px;
}

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

.gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
}

/* ---- Form Focus Glow ---- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ---- Download Button Pulse ---- */
@keyframes download-pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

#download-btn {
    animation: download-pulse 2.5s infinite;
}

#download-btn:hover {
    animation: none;
}

/* ---- WhatsApp Floating Button Pulse ---- */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.fixed.bottom-6.right-6 {
    animation: whatsapp-pulse 2s infinite;
}

/* ---- Loading Spinner for Form ---- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.7s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Mobile Menu Animation ---- */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* ---- Responsive Fixes ---- */
@media (max-width: 640px) {
    .text-4xl {
        font-size: 2rem;
    }

    .text-5xl {
        font-size: 2.5rem;
    }
}

/* ---- Print Styles ---- */
@media print {
    .fixed,
    #mobile-menu,
    .animate-pulse-slow,
    .animate-bounce {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}