"use client";

import { Contact as ContactSection } from "../../sections/Contact";
import { Navbar } from "../../components/Navbar";
import { Footer } from "../../sections/Footer";
import { CONTACT_EMAIL } from "../../types";

export default function ContactPage() {
  return (
    <>
      <Navbar />
      <div className="mx-auto flex min-h-screen w-full max-w-5xl flex-col items-center justify-start space-y-10 px-4 pb-16 pt-20 text-white sm:justify-center sm:space-y-12 sm:pb-20 sm:pt-24">
        <div className="text-center space-y-4 w-full">
          <h1 className="text-4xl font-semibold text-white sm:text-5xl md:text-6xl">
            Let&apos;s Connect
          </h1>
          <p className="mx-auto max-w-xl text-base text-gray-500 sm:text-lg md:text-xl">
            Whatever you&apos;ve got in mind, I&apos;m just a few clicks away.
          </p>
        </div>
        
        <div className="w-full max-w-2xl">
          <ContactSection />
        </div>

        <div className="grid w-full max-w-2xl grid-cols-1 gap-4 text-center sm:grid-cols-2 sm:gap-6">
          <a
            href={`mailto:${CONTACT_EMAIL}`}
            className="group w-full rounded-3xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-300 hover:border-white/25 sm:p-6"
          >
            <div className="text-3xl mb-4 group-hover:scale-110 transition-transform">📧</div>
            <h3 className="font-bold mb-1">Email</h3>
            <p className="text-sm text-gray-500 underline underline-offset-4 decoration-white/20 group-hover:decoration-white/60 transition-colors">
              Send me an email
            </p>
          </a>
          <div className="group w-full rounded-3xl border border-white/10 bg-white/[0.03] p-5 transition-all duration-300 hover:border-white/25 sm:p-6">
            <div className="text-3xl mb-4 group-hover:scale-110 transition-transform">👾</div>
            <h3 className="font-bold mb-1">Discord</h3>
            <p className="text-sm text-gray-500">@getspaced</p>
          </div>
        </div>
      </div>
      <Footer />
    </>
  );
}
