/* Jio Wireless – Custom Styles */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #166534;
}

/* Selection color */
::selection {
    background: #15803d;
    color: #fff;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 2px;
}

/* Subtle grain texture overlay for hero */
.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Navbar transition helper */
#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    opacity: 1;
}

/* Button ripple effect */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::after {
    opacity: 1;
}

/* Card image zoom on hover */
.feature-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-card:hover img {
    transform: scale(1.05);
}

/* Testimonial card hover */
#testimonials .bg-cream-50 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#testimonials .bg-cream-50:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(22, 101, 52, 0.1);
}

/* Form select arrow */
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
