"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FeatureCardOne from "@/components/sections/feature/FeatureCardOne";
import FooterMedia from "@/components/sections/footer/FooterMedia";
import Link from "next/link";
import { Phone, Building2 } from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "About", id: "/about" },
  { name: "Courses", id: "/courses" },
  { name: "Campus", id: "/campus" },
  { name: "Admissions", id: "/admissions" },
];

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="largeSmallSizeMediumTitles"
      background="aurora"
      cardStyle="layered-gradient"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="NRI Institute"
          navItems={navItems.map((item) => ({
            name: item.name,
            id: item.id,
          }))}
          button={{ text: "Call for Admission", href: "tel:09391878787" }}
          animateOnLoad={true}
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactSplit
          tag="Contact Us"
          title="Get In Touch With Our Team"
          description="Have questions about our programs, admissions, or campus? Reach out to us and our team will get back to you within 24 hours. For immediate assistance, call our dedicated admissions hotline."
          tagIcon={Phone}
          tagAnimation="slide-up"
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/modern-amphitheater-usa_1268-14358.jpg?_wi=2"
          imageAlt="NRI Institute Campus"
          mediaAnimation="blur-reveal"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Send Enquiry"
          termsText="We respect your privacy. We'll contact you with information about our programs and admissions."
          ariaLabel="Contact form section"
        />
      </div>

      <div id="contact-info" data-section="contact-info">
        <FeatureCardOne
          title="Contact Information & Locations"
          description="Find all the ways to reach out to NRI Institute of Technology - Vijayawada"
          tag="Get Connected"
          tagIcon={Building2}
          tagAnimation="slide-up"
          textboxLayout="default"
          features={[
            {
              title: "Main Campus - Vijayawada",
              description: "NRI Institute of Technology, Vijayawada, Andhra Pradesh, India. State-of-the-art facilities, modern infrastructure, and excellent connectivity by road and rail.",
              imageSrc: "http://img.b2bpic.net/free-photo/building-lake_1127-3460.jpg?_wi=2",
              imageAlt: "Main Campus",
            },
            {
              title: "Admissions Office",
              description: "Phone: 09391878787 | Email: admissions@nri.edu | Open: Monday to Friday, 9:00 AM to 5:00 PM IST. Special Saturday timings available for student visits.",
              imageSrc: "http://img.b2bpic.net/free-photo/woman-standing-children-sitting-desks_259150-60228.jpg?_wi=3",
              imageAlt: "Admissions Office",
            },
            {
              title: "Academic Departments",
              description: "Contact individual departments for specific course inquiries. Faculty office hours available for academic counseling. Department heads welcome prospective students.",
              imageSrc: "http://img.b2bpic.net/free-photo/medical-themeobservation-room-with-computer-tomograph-group-doctors-meeting-mri-office-diagnostic-center-hospital_627829-6526.jpg?_wi=2",
              imageAlt: "Academic Department",
            },
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="blur-reveal"
          useInvertedBackground={false}
          ariaLabel="Contact information and campus locations"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/hotel_1127-4042.jpg?_wi=6"
          imageAlt="NRI Institute Campus Footer"
          logoText="NRI Institute of Technology"
          copyrightText="© 2025 NRI Institute of Technology. All rights reserved."
          columns={[
            {
              title: "Quick Links",
              items: [
                { label: "Home", href: "/" },
                { label: "About Us", href: "/about" },
                { label: "Courses", href: "/courses" },
                { label: "Placements", href: "/placements" },
              ],
            },
            {
              title: "Admissions",
              items: [
                { label: "Apply Now", href: "/admissions" },
                { label: "Eligibility", href: "/admissions" },
                { label: "Fee Structure", href: "/admissions" },
                { label: "Download Brochure", href: "#" },
              ],
            },
            {
              title: "Contact",
              items: [
                { label: "Phone: 09391878787", href: "tel:09391878787" },
                { label: "Email: admissions@nri.edu", href: "mailto:admissions@nri.edu" },
                { label: "Vijayawada, Andhra Pradesh", href: "#" },
                { label: "Privacy Policy", href: "#" },
              ],
            },
          ]}
          ariaLabel="Site footer with navigation and contact information"
        />
      </div>
    </ThemeProvider>
  );
}