<section id="contact" class="bg-light-bg dark:bg-dark-bg py-20">
    <div class="container mx-auto px-6 lg:px-10">
        <div class="text-center mb-16" data-aos="fade-up">
            <p class="text-sm font-medium text-primary text-transparent bg-clip-text 
    bg-gradient-to-r from-blue-300 via-purple-300 tracking-[3px]">CONTACT</p>
            <h2 class="text-4xl md:text-5xl font-bold text-light-headings dark:text-dark-headings mt-4">Contact With Me</h2>
        </div>
        <div class="grid lg:grid-cols-3 gap-8">
            <div class="lg:col-span-1" data-aos="fade-right">
                <div class="p-8 bg-light-bg dark:bg-dark-bg rounded-2xl shadow-light-neumorphic dark:shadow-dark-neumorphic h-full">
                    <div class="overflow-hidden rounded-xl mb-6">
                        <img src="images/contact/contact.png" alt="Contact" class="w-full h-auto object-cover">
                    </div>
                    <h3 class="text-2xl font-bold text-light-headings dark:text-dark-headings">Ashok KC</h3>
                    <p class="text-light-text dark:text-dark-text mt-1">Chief Executive Officer</p>
                    <p class="text-light-text dark:text-dark-text mt-4 leading-relaxed">Young Tech Entrepreneur from Nepal & who always dream about changing Analog Nepal to Digital</p>
                    <p class="text-light-text dark:text-dark-text mt-6">Phone: <a href="tel:9864400000" class="hover:text-primary transition-colors">9864400000</a></p>
                    <p class="text-light-text dark:text-dark-text">Email: <a href="mailto:ashok@abssoft.com.np" class="hover:text-primary transition-colors">ashok@abssoft.com.np</a></p>
                    <p class="font-medium uppercase text-sm tracking-wider text-light-text dark:text-dark-text mt-8 mb-4">Find With Me</p>
                    <div class="flex gap-4">
                         <a href="https://github.com/akc3416" class="w-14 h-14 flex items-center justify-center bg-light-bg dark:bg-dark-bg rounded-lg shadow-light-neumorphic dark:shadow-dark-neumorphic group hover:bg-gradient-to-br from-[#c812d6] via-primary to-[#ff6a00] hover:shadow-hire-glow transition-all duration-300 hover:-translate-y-1">
                        <svg class="w-6 h-6 text-light-headings dark:text-dark-text group-hover:text-white transition-colors" fill="currentColor" viewBox="0 0 496 512"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3.3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
                    </a>

                        <a href="https://wa.me/9779864400000?text=Hello%20I%20would%20like%20to%20inquire%20about%20your%20services
" class="w-14 h-14 flex items-center justify-center bg-light-bg dark:bg-dark-bg rounded-lg shadow-light-neumorphic dark:shadow-dark-neumorphic group hover:bg-gradient-to-br from-[#c812d6] via-primary to-[#ff6a00] hover:shadow-hire-glow transition-all duration-300 hover:-translate-y-1">
                        <svg class="w-6 h-6 text-light-headings dark:text-dark-text group-hover:text-white transition-colors" fill="currentColor" viewBox="0 0 448 512"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.8 0-67.6-9.5-97.8-26.7l-7-4.1-72.3 19 19.4-70.6-4.5-7.3c-18.4-29.7-28-64.4-28-101.4 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>
                    </a>

                        {{-- <a href="#" class="w-14 h-14 flex items-center justify-center bg-light-bg dark:bg-dark-bg rounded-md shadow-light-neumorphic dark:shadow-dark-neumorphic group hover:bg-gradient-to-br from-[#c812d6] via-primary to-[#ff6a00] transition-all duration-300"><svg class="w-5 h-5 text-light-headings dark:text-dark-text group-hover:text-white transition-colors" fill="currentColor" viewBox="0 0 448 512"><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9 26.3 26.2 58 34.4 93.9 36.2 37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7-2.6 132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg></a> --}}
                    </div>
                </div>
            </div>
            <div class="lg:col-span-2" data-aos="fade-left">
                <div class="p-8 bg-light-bg dark:bg-dark-bg rounded-2xl shadow-light-neumorphic dark:shadow-dark-neumorphic h-full">
                    
                    <!-- Success/Error Message Display with Alpine.js -->
                    @if (session('success'))
                        <div x-data="{ show: true }" x-init="setTimeout(() => show = false, 5000)" x-show="show" x-transition.leave.duration.500ms
                             class="bg-green-100 border-l-4 border-green-500 text-green-700 p-4 rounded-lg relative mb-6" role="alert">
                            <div class="flex">
                                <div class="py-1"><svg class="fill-current h-6 w-6 text-green-500 mr-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"/></svg></div>
                                <div>
                                    <p class="font-bold">Success!</p>
                                    <p class="text-sm">{{ session('success') }}</p>
                                </div>
                                <button @click="show = false" class="absolute top-0 bottom-0 right-0 px-4 py-3">
                                    <svg class="fill-current h-6 w-6 text-green-500" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><title>Close</title><path d="M14.348 14.849a1.2 1.2 0 0 1-1.697 0L10 11.819l-2.651 3.029a1.2 1.2 0 1 1-1.697-1.697l2.758-3.15-2.759-3.152a1.2 1.2 0 1 1 1.697-1.697L10 8.183l2.651-3.031a1.2 1.2 0 1 1 1.697 1.697l-2.758 3.152 2.758 3.15a1.2 1.2 0 0 1 0 1.698z"/></svg>
                                </button>
                            </div>
                        </div>
                    @endif
                    
                    <form action="{{ route('contact.store') }}#contact" method="POST" class="space-y-6">
                        @csrf
                            <input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response">

                        <div class="grid sm:grid-cols-2 gap-6">
                            <div>
                                <label for="name" class="block text-sm font-medium text-light-text dark:text-dark-text mb-2 uppercase tracking-wide">Your Name</label>
                                <input type="text" name="name" id="name" required class="w-full bg-light-bg dark:bg-dark-bg text-light-headings dark:text-dark-headings p-4 rounded-lg shadow-light-neumorphic-inset dark:shadow-dark-neumorphic-inset border-none focus:ring-2 focus:ring-primary transition-shadow">
                            </div>
                            <div>
                                <label for="phone" class="block text-sm font-medium text-light-text dark:text-dark-text mb-2 uppercase tracking-wide">Phone Number</label>
                                <input type="tel" name="phone" id="phone" required class="w-full bg-light-bg dark:bg-dark-bg text-light-headings dark:text-dark-headings p-4 rounded-lg shadow-light-neumorphic-inset dark:shadow-dark-neumorphic-inset border-none focus:ring-2 focus:ring-primary transition-shadow">
                            </div>
                        </div>
                        <div>
                            <label for="email" class="block text-sm font-medium text-light-text dark:text-dark-text mb-2 uppercase tracking-wide">Email</label>
                            <input type="email" name="email" id="email" required class="w-full bg-light-bg dark:bg-dark-bg text-light-headings dark:text-dark-headings p-4 rounded-lg shadow-light-neumorphic-inset dark:shadow-dark-neumorphic-inset border-none focus:ring-2 focus:ring-primary transition-shadow">
                        </div>
                        <div>
                            <label for="subject" class="block text-sm font-medium text-light-text dark:text-dark-text mb-2 uppercase tracking-wide">Subject</label>
                            <input type="text" name="subject" id="subject" required class="w-full bg-light-bg dark:bg-dark-bg text-light-headings dark:text-dark-headings p-4 rounded-lg shadow-light-neumorphic-inset dark:shadow-dark-neumorphic-inset border-none focus:ring-2 focus:ring-primary transition-shadow">
                        </div>
                        <div>
                            <label for="message" class="block text-sm font-medium text-light-text dark:text-dark-text mb-2 uppercase tracking-wide">Your Message</label>
                            <textarea name="message" id="message" rows="5" required class="w-full bg-light-bg dark:bg-dark-bg text-light-headings dark:text-dark-headings p-4 rounded-lg shadow-light-neumorphic-inset dark:shadow-dark-neumorphic-inset border-none focus:ring-2 focus:ring-primary transition-shadow"></textarea>
                        </div>
                        <div>
                            <button type="submit" class="w-full font-semibold p-4 rounded-lg bg-light-bg dark:bg-dark-bg shadow-light-neumorphic dark:shadow-dark-neumorphic text-primary transition-all duration-300 group hover:text-white hover:bg-gradient-to-br from-[#c812d6] via-primary to-[#ff6a00] hover:-translate-y-1 hover:shadow-hire-glow">
                                SEND MESSAGE
                            </button>
                        </div>
                    </form>
                    <script>
    document.getElementById('contact-form').addEventListener('submit', function(e) {
        e.preventDefault(); // Prevent the form from submitting immediately
        grecaptcha.ready(function() {
            grecaptcha.execute('{{ env('RECAPTCHA_SITE_KEY') }}', {action: 'submit'}).then(function(token) {
                // Add your logic to submit to your backend server here.
                document.getElementById('g-recaptcha-response').value = token;
                document.getElementById('contact-form').submit(); // Now submit the form
            });
        });
    });
</script>
                </div>
            </div>
        </div>
    </div>
</section>