/* ===== Vinfoz Website — Custom Styles ===== */

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

/* Navbar transitions */
#navbar {
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
    background: rgba(18, 58, 93, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
}

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > * { opacity: 0; transform: translateY(20px); }
.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero gradient animation */
.hero-gradient {
    background: linear-gradient(135deg, #123a5d 0%, #0e2b45 40%, #1b1f3b 100%);
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 141, 92, 0.15) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, 10%) scale(1.2); }
}

/* Module cards hover */
.module-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Pricing card popular */
.pricing-popular {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(18, 58, 93, 0.2);
}

/* Client logo marquee */
.marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Feature icon container */
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Step connector line */
.step-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: linear-gradient(to right, #123a5d, #e5e7eb);
}

/* Pricing toggle */
.pricing-toggle input:checked + span {
    background-color: #123a5d;
}
.pricing-toggle input:checked + span::after {
    transform: translateX(24px);
}

/* Contact form focus */
.form-input:focus {
    border-color: #123a5d;
    box-shadow: 0 0 0 3px rgba(18, 58, 93, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #123a5d, #2e8d5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product section alternating */
.product-section:nth-child(even) {
    background-color: #f9fafb;
}

/* Legal / prose pages (Privacy, Terms, Refund, etc.) */
.legal { color: #4b5563; font-size: 0.95rem; line-height: 1.75; }
.legal .lead { font-size: 1.05rem; color: #374151; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; font-weight: 700; color: #111827; margin-top: 2.25rem; margin-bottom: 0.6rem; }
.legal h2:first-child, .legal h2.\!mt-0 { margin-top: 0; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal ul li { margin-bottom: 0.45rem; }
.legal a { color: #123a5d; text-decoration: underline; }
.legal a:hover { color: #2e8d5c; }
.legal strong { color: #1f2937; font-weight: 600; }
