/* ============================================================
   CloudFlow SaaS Landing Page — Custom Styles
   ============================================================ */

/* ---------- Navbar Glassmorphism ---------- */
#navbar {
    background: rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#navbar.navbar-scrolled {
    background: rgba(2, 132, 199, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Floating Badge Animations ---------- */
.badge-float-1 {
    animation: floatBadge1 4s ease-in-out infinite;
}

.badge-float-2 {
    animation: floatBadge2 4.5s ease-in-out infinite;
}

.badge-float-3 {
    animation: floatBadge3 3.8s ease-in-out infinite;
}

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

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

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

/* ---------- Feature Card Hover ---------- */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

/* ---------- FAQ Accordion ---------- */
.faq-item .faq-content {
    display: none;
}

.faq-item.active .faq-content {
    display: block;
}

.faq-item .fa-chevron-down {
    transition: transform 0.3s ease;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-item .faq-toggle {
    transition: background-color 0.2s ease;
}

.faq-item.active .faq-toggle {
    background-color: rgba(14, 165, 233, 0.05);
}

/* ---------- Counter Animation ---------- */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------- Testimonial Card ---------- */
#testimonials .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials .bg-white:hover {
    transform: translateY(-4px);
}

/* ---------- CTA Gradient Background ---------- */
#cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

/* ---------- Selection Color ---------- */
::selection {
    background: rgba(14, 165, 233, 0.25);
    color: inherit;
}

::-moz-selection {
    background: rgba(14, 165, 233, 0.25);
    color: inherit;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
}

/* ---------- Hero Wave SVG ---------- */
#hero svg path {
    transition: d 0.3s ease;
}

/* ---------- Responsive Fine-tuning ---------- */
@media (max-width: 1023px) {
    .badge-float-1 {
        top: -10px;
        left: 0;
    }
    .badge-float-2 {
        bottom: -10px;
        right: 0;
    }
    .badge-float-3 {
        display: none;
    }
}

@media (max-width: 640px) {
    #navbar {
        background: rgba(2, 132, 199, 0.9);
    }
    .badge-float-1 {
        left: -4px;
    }
    .badge-float-2 {
        right: -4px;
    }
}

/* ---------- CTA Buttons Hover Ripple Effect ---------- */
#cta a {
    position: relative;
    overflow: hidden;
}

#cta a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#cta a:active::after {
    width: 300px;
    height: 300px;
}

/* ---------- Footer Link Hover ---------- */
footer a:hover {
    transition: color 0.2s ease;
}

/* ---------- Nav Mobile Menu Links ---------- */
#mobile-menu a {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

#mobile-menu a:hover {
    padding-left: 4px;
}
