/* ============================================
   Vrddhim Technologies - Custom Styles
   ============================================ */

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Selection Color --- */
::selection {
    background-color: #17b2a5;
    color: #fff;
}

/* --- Hero Grid Pattern --- */
.hero-grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Header Scroll State --- */
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* Logo: dark on white background (scrolled / internal pages) */
#site-header.scrolled .header-logo {
    filter: brightness(0);
}

/* Logo: keep original (white) on dark/transparent background (home page not scrolled) */
#site-header:not(.scrolled) .header-logo {
    filter: none;
}

/* Footer logo: always white */
.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* --- Fade In Up Animation --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Animate (triggered by JS) --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }
.scroll-animate.delay-5 { transition-delay: 0.5s; }

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

/* --- Benefit & Service Cards Hover --- */
.benefit-card:hover,
.service-card:hover {
    transform: translateY(-6px);
}

/* --- Result Cards --- */
.result-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- Industry Tags --- */
.industry-tag {
    transition: all 0.3s ease;
}
.industry-tag:hover {
    transform: translateY(-3px);
}

/* --- FAQ Accordion --- */
.faq-item {
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.faq-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

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

/* --- WhatsApp Button Pulse --- */
.whatsapp-float {
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Trust Stat Hover --- */
.trust-stat {
    transition: all 0.3s ease;
}
.trust-stat:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* --- Form Focus Glow --- */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(23, 178, 165, 0.15);
}

/* --- 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); }
}

/* --- Counter Number Animation --- */
.counter, .counter-decimal {
    display: inline-block;
}

/* --- Services Dropdown (Desktop) --- */
.services-dropdown-menu {
    transform: translateX(-50%) translateY(4px);
}
.group:hover .services-dropdown-menu {
    transform: translateX(-50%) translateY(0);
}
#services-dropdown:hover #services-dropdown-btn i {
    transform: rotate(180deg);
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .hero-grid-pattern {
        background-size: 40px 40px;
    }
}

/* --- Print Styles --- */
@media print {
    #site-header, .whatsapp-float, #mobile-cta { display: none !important; }
    section { page-break-inside: avoid; }
}
